diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-10 20:12:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 20:12:26 (GMT) |
commit | c98b0199a984430312833ef403d265be314f7244 (patch) | |
tree | 5ed60fe7dab0a90dd08b51c54082f6a320fd0693 /Lib/test/_test_multiprocessing.py | |
parent | bbc8b7965bb9f46763c96878326966f4231c7d39 (diff) | |
download | cpython-c98b0199a984430312833ef403d265be314f7244.zip cpython-c98b0199a984430312833ef403d265be314f7244.tar.gz cpython-c98b0199a984430312833ef403d265be314f7244.tar.bz2 |
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
Replace hardcoded timeout constants in tests with LONG_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
LONG_TIMEOUT is 5 minutes by default, but it can be longer depending
on --timeout command line option.
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 611291c..86f3d1c 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -295,7 +295,7 @@ class _TestProcess(BaseTestCase): target=self._test_create_grandchild_process, args=(wconn, )) p.start() - if not rconn.poll(timeout=60): + if not rconn.poll(timeout=support.LONG_TIMEOUT): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "alive") @@ -303,7 +303,7 @@ class _TestProcess(BaseTestCase): p.terminate() p.join() - if not rconn.poll(timeout=60): + if not rconn.poll(timeout=support.LONG_TIMEOUT): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "not alive") |