diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-11 21:17:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 21:17:04 (GMT) |
commit | 7772b1af5ebc9d72d0cfc8332aea6b2143eafa27 (patch) | |
tree | ab891c2456b721210dca1d5462f18b0e4d46dabf /Lib/test/_test_multiprocessing.py | |
parent | 0d63bacefd2e5b937ec6b0ec3053777c09941b4a (diff) | |
download | cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.zip cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.tar.gz cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.tar.bz2 |
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 399be13..c0da7d8 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1144,7 +1144,7 @@ class _TestQueue(BaseTestCase): q = self.Queue() q.put(NotSerializable()) q.put(True) - self.assertTrue(q.get(timeout=support.LONG_TIMEOUT)) + self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT)) close_queue(q) with test.support.captured_stderr(): @@ -1159,8 +1159,7 @@ class _TestQueue(BaseTestCase): # qsize is not available on all platform as it # relies on sem_getvalue pass - # bpo-30595: use a timeout of 1 second for slow buildbots - self.assertTrue(q.get(timeout=1.0)) + self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT)) # Check that the size of the queue is correct self.assertTrue(q.empty()) close_queue(q) @@ -1197,7 +1196,7 @@ class _TestQueue(BaseTestCase): # Verify that q is still functioning correctly q.put(True) - self.assertTrue(q.get(timeout=1.0)) + self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT)) # Assert that the serialization and the hook have been called correctly self.assertTrue(not_serializable_obj.reduce_was_called) |