summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_locks.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-11-23 15:09:16 -0800
committerGuido van Rossum <guido@python.org>2013-11-23 15:09:16 -0800
commit2eee0f9955a3b0888f63750b659f5ad93636f2e2 (patch)
tree6fc85c063dfc05105b290ad952d550bf7b21384e /Lib/test/test_asyncio/test_locks.py
parenta12375153d715af21eb29041f7f8846c366fe3d6 (diff)
downloadcpython-2eee0f9955a3b0888f63750b659f5ad93636f2e2.tar.gz
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 539c5c38ee..df106e0d15 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)