mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-02 11:56:38 +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
|
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."""
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user