You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-05-29.21:54:56.259>created_at=<Date2017-11-20.15:32:21.236>labels= ['3.7', 'tests']
title='test_put() of test_multiprocessing queue tests has a race condition'updated_at=<Date2018-05-29.21:54:56.259>user='https://github.com/vstinner'
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/_test_multiprocessing.py", line 809, in test_putself.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)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: