mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
This commit is contained in:
parent
2512a8b62e
commit
819c40ff35
4 changed files with 5 additions and 8 deletions
|
|
@ -35,8 +35,8 @@ class LockTests(unittest.TestCase):
|
|||
"Lock object did not release properly.")
|
||||
|
||||
def test_improper_release(self):
|
||||
#Make sure release of an unlocked thread raises _thread.error
|
||||
self.assertRaises(_thread.error, self.lock.release)
|
||||
#Make sure release of an unlocked thread raises RuntimeError
|
||||
self.assertRaises(RuntimeError, self.lock.release)
|
||||
|
||||
def test_cond_acquire_success(self):
|
||||
#Make sure the conditional acquiring of the lock works.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue