[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x
Grzegorz Grzywacz
report at bugs.python.org
Fri Jun 9 08:53:11 EDT 2017
Grzegorz Grzywacz added the comment:
Looks like build bot is too slow for timeout=0.1.
I am guessing `0.1` is too low because we have wrong condition in Queue.get.
It should be.
diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py
index dda03dd..42e9884 100644
--- a/Lib/multiprocessing/queues.py
+++ b/Lib/multiprocessing/queues.py
@@ -101,7 +101,7 @@ class Queue(object):
try:
if block:
timeout = deadline - time.time()
- if timeout < 0 or not self._poll(timeout):
+ if self._poll(timeout):
raise Empty
elif not self._poll():
raise Empty
If we successfully acquired self._rlock, we should poll no matter how long acquire took.
----------
nosy: +grzgrzgrz3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30595>
_______________________________________
More information about the Python-bugs-list
mailing list