mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-02 03:46:39 +02:00
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:
@@ -50,7 +50,7 @@ class TestGioTool(testprogramrunner.TestProgramRunner):
|
||||
PROGRAM_TYPE = testprogramrunner.ProgramType.NATIVE
|
||||
|
||||
def runGio(self, *args):
|
||||
return self.runTestProgram(args, timeout_seconds=6)
|
||||
return self.runTestProgram(args)
|
||||
|
||||
def test_help(self):
|
||||
"""Test the --help argument and help subcommand."""
|
||||
|
@@ -101,7 +101,6 @@ class TestProgramRunner(unittest.TestCase):
|
||||
self,
|
||||
*args,
|
||||
should_fail=False,
|
||||
timeout_seconds=10,
|
||||
wrapper_args=[],
|
||||
environment={},
|
||||
cwd=None,
|
||||
@@ -130,7 +129,6 @@ class TestProgramRunner(unittest.TestCase):
|
||||
# We want to ensure consistent line endings...
|
||||
info = subprocess.run(
|
||||
argv,
|
||||
timeout=timeout_seconds,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
env=env,
|
||||
|
Reference in New Issue
Block a user