diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-01 23:05:42 +0000 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-01 23:05:42 +0000 |
| commit | 819c40ff35aeead0f78c71e18efdc634ffb7b187 (patch) | |
| tree | 5536386865d20e18a25c768d86f34d5275dd7c3c /Lib/test/test_dummy_thread.py | |
| parent | 2512a8b62e32d0b7c51b484a32bb770bd4c2a903 (diff) | |
| download | cpython-git-819c40ff35aeead0f78c71e18efdc634ffb7b187.tar.gz | |
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
Diffstat (limited to 'Lib/test/test_dummy_thread.py')
| -rw-r--r-- | Lib/test/test_dummy_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dummy_thread.py b/Lib/test/test_dummy_thread.py index c61078d620..2fafe1df85 100644 --- a/Lib/test/test_dummy_thread.py +++ b/Lib/test/test_dummy_thread.py @@ -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. |
