]> granicus.if.org Git - python/commitdiff
bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (GH-2148) (GH-5429)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 29 Jan 2018 15:54:29 +0000 (16:54 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2018 15:54:29 +0000 (16:54 +0100)
_test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a
timeout of 1 second on Queue.get(), instead of 0.1 second, for slow
buildbots.

(cherry picked from commit 8f6eeaf21cdf4aea25fdefeec814a1ce07453fe9)

Lib/test/test_multiprocessing.py

index a77bfee6718ee66afab33b28e0c69b64dfd0340c..1071d7fac6532b5cca338aef81e2ddc16c52249f 100644 (file)
@@ -671,7 +671,8 @@ class _TestQueue(BaseTestCase):
             q = self.Queue()
             q.put(NotSerializable())
             q.put(True)
-            self.assertTrue(q.get(timeout=0.1))
+            # bpo-30595: use a timeout of 1 second for slow buildbots
+            self.assertTrue(q.get(timeout=1.0))
 
 
 #