summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_queue.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
commit3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch)
treec61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_queue.py
parente0281cab810c30a23cf2490704e0f85aa4751e83 (diff)
downloadcpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_queue.py')
-rw-r--r--Lib/test/test_queue.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py
index bfa5596..0b2f31a 100644
--- a/Lib/test/test_queue.py
+++ b/Lib/test/test_queue.py
@@ -87,17 +87,17 @@ class FailingQueue(Queue.Queue):
def _put(self, item):
if self.fail_next_put:
self.fail_next_put = False
- raise FailingQueueException, "You Lose"
+ raise FailingQueueException("You Lose")
return Queue.Queue._put(self, item)
def _get(self):
if self.fail_next_get:
self.fail_next_get = False
- raise FailingQueueException, "You Lose"
+ raise FailingQueueException("You Lose")
return Queue.Queue._get(self)
def FailingQueueTest(q):
if not q.empty():
- raise RuntimeError, "Call this function with an empty queue"
+ raise RuntimeError("Call this function with an empty queue")
for i in range(QUEUE_SIZE-1):
q.put(i)
# Test a failing non-blocking put.
@@ -178,7 +178,7 @@ def FailingQueueTest(q):
def SimpleQueueTest(q):
if not q.empty():
- raise RuntimeError, "Call this function with an empty queue"
+ raise RuntimeError("Call this function with an empty queue")
# I guess we better check things actually queue correctly a little :)
q.put(111)
q.put(222)