[issue32090] test_put()
STINNER Victor
report at bugs.python.org
Mon Nov 20 10:32:21 EST 2017
New submission from STINNER Victor <victor.stinner at gmail.com>:
The test failed on AMD64 FreeBSD 10.x Shared 3.x:
http://buildbot.python.org/all/#/builders/87/builds/200/steps/4/logs/stdio
FAIL: test_put (test.test_multiprocessing_fork.WithProcessesTestQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/_test_multiprocessing.py", line 809, in test_put
self.assertEqual(queue_empty(queue), False)
AssertionError: True != False
--
I succeeded to reproduce the issue on Linux with this change:
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index dbca2d89ed..0754ac0d52 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -804,7 +804,7 @@ class _TestQueue(BaseTestCase):
queue.put_nowait(6)
# the values may be in buffer but not yet in pipe so sleep a bit
- time.sleep(DELTA)
+ time.sleep(0)
self.assertEqual(queue_empty(queue), False)
self.assertEqual(queue_full(queue, MAXSIZE), True)
----------
components: Tests
messages: 306553
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_put()
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32090>
_______________________________________
More information about the Python-bugs-list
mailing list