Commit 3d8f801e authored by Denis Bilenko's avatar Denis Bilenko

test__queue.py: add test for issue #45: join() blocks on empty queue

parent 8fff2a10
......@@ -320,5 +320,14 @@ class TestNoWait(TestCase):
assert q.empty(), q
class TestJoinEmpty(TestCase):
def test_issue_45(self):
"""Test that join() exits immediatelly if not jobs were put into the queue"""
self.switch_expected = False
q = queue.JoinableQueue()
q.join()
if __name__ == '__main__':
main()
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