Kaydet (Commit) dec1c778 authored tarafından Thomas Moreau's avatar Thomas Moreau Kaydeden (comit) Antoine Pitrou

FIX failure on OSX sem_getvalue (#6180)

üst e2f33add
......@@ -1062,11 +1062,16 @@ class _TestQueue(BaseTestCase):
q = self.Queue(maxsize=1)
q.put(NotSerializable())
q.put(True)
self.assertEqual(q.qsize(), 1)
try:
self.assertEqual(q.qsize(), 1)
except NotImplementedError:
# 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))
# Check that the size of the queue is correct
self.assertEqual(q.qsize(), 0)
self.assertTrue(q.empty())
close_queue(q)
def test_queue_feeder_on_queue_feeder_error(self):
......
Fix the failure on OSX caused by the tests relying on sem_getvalue
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment