Followup to issue #11140 and r88682: also patch _dummy_thread.

Patch by Aymeric Augustin.
This commit is contained in:
Antoine Pitrou 2011-03-01 23:05:42 +00:00
parent 2512a8b62e
commit 819c40ff35
4 changed files with 5 additions and 8 deletions

View file

@ -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.