diff options
author | Guido van Rossum <guido@python.org> | 2013-11-23 15:09:16 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-11-23 15:09:16 -0800 |
commit | 2eee0f9955a3b0888f63750b659f5ad93636f2e2 (patch) | |
tree | 6fc85c063dfc05105b290ad952d550bf7b21384e /Lib/test/test_asyncio/test_locks.py | |
parent | a12375153d715af21eb29041f7f8846c366fe3d6 (diff) | |
download | cpython-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.py | 2 |
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) |