summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r--Lib/test/_test_multiprocessing.py7
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)