summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_locks.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-11-23 23:09:16 (GMT)
committerGuido van Rossum <guido@python.org>2013-11-23 23:09:16 (GMT)
commit085869bfeeaeecaa79fd4ea9b55fc48f2fe08f05 (patch)
treebfa2ef89c711b62a56b004a90fdb6ff6810859b5 /Lib/test/test_asyncio/test_locks.py
parentdcd340eeebf0793ea0797ca90d72ac535db4ea78 (diff)
downloadcpython-085869bfeeaeecaa79fd4ea9b55fc48f2fe08f05.zip
cpython-085869bfeeaeecaa79fd4ea9b55fc48f2fe08f05.tar.gz
cpython-085869bfeeaeecaa79fd4ea9b55fc48f2fe08f05.tar.bz2
asyncio: Change bounded semaphore into a subclass, like threading.[Bounded]Semaphore.
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
-rw-r--r--Lib/test/test_asyncio/test_locks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py
index 539c5c3..df106e0 100644
--- a/Lib/test/test_asyncio/test_locks.py
+++ b/Lib/test/test_asyncio/test_locks.py
@@ -805,7 +805,7 @@ class SemaphoreTests(unittest.TestCase):
self.assertFalse(sem._waiters)
def test_release_not_acquired(self):
- sem = locks.Semaphore(bound=True, loop=self.loop)
+ sem = locks.BoundedSemaphore(loop=self.loop)
self.assertRaises(ValueError, sem.release)