mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
merge 70783 back to 26maint
This commit is contained in:
parent
d5ac4447ba
commit
f0d21c751b
4 changed files with 9 additions and 1 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