mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
merge 70783 to py3k
This commit is contained in:
parent
6d4a9cf85f
commit
f8d0085510
4 changed files with 9 additions and 2 deletions
|
@ -548,6 +548,10 @@ class _TestLock(BaseTestCase):
|
|||
self.assertEqual(lock.release(), None)
|
||||
self.assertRaises((AssertionError, RuntimeError), lock.release)
|
||||
|
||||
def test_lock_context(self):
|
||||
with self.Lock():
|
||||
pass
|
||||
|
||||
|
||||
class _TestSemaphore(BaseTestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue