Index: py3k/Lib/_dummy_thread.py =================================================================== --- py3k/Lib/_dummy_thread.py (révision 88694) +++ py3k/Lib/_dummy_thread.py (copie de travail) @@ -24,12 +24,8 @@ # imports are done when needed on a function-by-function basis. Since threads # are disabled, the import lock should not be an issue anyway (??). -class error(Exception): - """Dummy implementation of _thread.error.""" +error = RuntimeError - def __init__(self, *args): - self.args = args - def start_new_thread(function, args, kwargs={}): """Dummy implementation of _thread.start_new_thread(). Index: py3k/Lib/test/test_dummy_thread.py =================================================================== --- py3k/Lib/test/test_dummy_thread.py (révision 88694) +++ py3k/Lib/test/test_dummy_thread.py (copie de travail) @@ -35,8 +35,8 @@ "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.