From 43b00da219d8490631f37cd4424fca30e1848404 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 24 Mar 2006 23:55:32 +0000 Subject: Revert previous change. Wasn't ready yet. --- Lib/test/test_queue.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py index 4f8d8ba..17c1def 100644 --- a/Lib/test/test_queue.py +++ b/Lib/test/test_queue.py @@ -246,22 +246,11 @@ def QueueJoinTest(q): q.put(i) q.join() verify(cum==sum(range(100)), "q.join() did not block until all tasks were done") - q.join() # Make sure you can join more than once - -def QueueTaskDoneTest(q) - try: - q.task_done() - except ValueError: - pass - else: - raise TestFailed("Did not detect task count going negative") def test(): - q = Queue.Queue(20) - QueueTaskDoneTest(q) + q = Queue.Queue() QueueJoinTest(q) QueueJoinTest(q) - QueueTaskDoneTest(q) q = Queue.Queue(QUEUE_SIZE) # Do it a couple of times on the same queue -- cgit v0.12