summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2006-03-24 23:55:32 (GMT)
committerRaymond Hettinger <python@rcn.com>2006-03-24 23:55:32 (GMT)
commit43b00da219d8490631f37cd4424fca30e1848404 (patch)
tree8b36f3a89bcb23e1660d923a8d6bb08b1f6f892b /Lib
parente751c86dcb97a107b7c0a3367cbba3a3f2c3093b (diff)
downloadcpython-43b00da219d8490631f37cd4424fca30e1848404.zip
cpython-43b00da219d8490631f37cd4424fca30e1848404.tar.gz
cpython-43b00da219d8490631f37cd4424fca30e1848404.tar.bz2
Revert previous change. Wasn't ready yet.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_queue.py13
1 files changed, 1 insertions, 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