Tests: do not set a timeout in Python tests

The Meson test harness handles that for us.

With a custom timeout, meson test -t is not useful (which is
surprising for users) and interactive debugging sessions may
terminate unexepectedly.
This commit is contained in:
Luca Bacci
2025-08-04 10:47:50 +02:00
parent e57cbd8b47
commit 12543df16f
2 changed files with 1 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class TestGioTool(testprogramrunner.TestProgramRunner):
PROGRAM_TYPE = testprogramrunner.ProgramType.NATIVE PROGRAM_TYPE = testprogramrunner.ProgramType.NATIVE
def runGio(self, *args): def runGio(self, *args):
return self.runTestProgram(args, timeout_seconds=6) return self.runTestProgram(args)
def test_help(self): def test_help(self):
"""Test the --help argument and help subcommand.""" """Test the --help argument and help subcommand."""

View File

@@ -101,7 +101,6 @@ class TestProgramRunner(unittest.TestCase):
self, self,
*args, *args,
should_fail=False, should_fail=False,
timeout_seconds=10,
wrapper_args=[], wrapper_args=[],
environment={}, environment={},
cwd=None, cwd=None,
@@ -130,7 +129,6 @@ class TestProgramRunner(unittest.TestCase):
# We want to ensure consistent line endings... # We want to ensure consistent line endings...
info = subprocess.run( info = subprocess.run(
argv, argv,
timeout=timeout_seconds,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
env=env, env=env,