aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_queues.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-25 17:24:51 -0800
committerGuido van Rossum <guido@python.org>2014-01-25 17:24:51 -0800
commitfef7098ef9282cfc8a2c480408de351d5bf36fb1 (patch)
tree4653a6a6d0c73b2cede5d9dbd418b75c03b68224 /Lib/test/test_asyncio/test_queues.py
parentab3c88983bc6c2a6ae98625296eef9d7588c8d69 (diff)
downloadcpython-fef7098ef9282cfc8a2c480408de351d5bf36fb1.tar.gz
cpython-fef7098ef9282cfc8a2c480408de351d5bf36fb1.zip
asyncio: Rename {Empty,Full} to {QueueEmpty,QueueFull} and no longer get them from queue.py.
Diffstat (limited to 'Lib/test/test_asyncio/test_queues.py')
-rw-r--r--Lib/test/test_asyncio/test_queues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_queues.py b/Lib/test/test_asyncio/test_queues.py
index a06ed503161..fc2bf460b8f 100644
--- a/Lib/test/test_asyncio/test_queues.py
+++ b/Lib/test/test_asyncio/test_queues.py
@@ -230,7 +230,7 @@ class QueueGetTests(_QueueTestBase):
def test_nonblocking_get_exception(self):
q = asyncio.Queue(loop=self.loop)
- self.assertRaises(asyncio.Empty, q.get_nowait)
+ self.assertRaises(asyncio.QueueEmpty, q.get_nowait)
def test_get_cancelled(self):
@@ -337,7 +337,7 @@ class QueuePutTests(_QueueTestBase):
def test_nonblocking_put_exception(self):
q = asyncio.Queue(maxsize=1, loop=self.loop)
q.put_nowait(1)
- self.assertRaises(asyncio.Full, q.put_nowait, 2)
+ self.assertRaises(asyncio.QueueFull, q.put_nowait, 2)
def test_put_cancelled(self):
q = asyncio.Queue(loop=self.loop)