Skip to content

Commit e70ec4d

Browse files
author
Anselm Kruis
committed
Stackless issue python#93: Unify and fix tasklet.kill(), tasklet.throw() and tasklet.raise_exception()
Adapt a test case to the new behavior of tasklet.raise_exception(exc_class, *args). Now it raises RuntimeError on errors.
1 parent c583b38 commit e70ec4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stackless/unittests/test_thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class MyException(Exception):
469469
self.assertEqual(t.thread_id, -1)
470470
self.assertRaises(RuntimeError, t.switch)
471471
self.assertEqual(t.thread_id, -1)
472-
self.assertRaises(MyException, t.raise_exception, MyException, 'test')
472+
self.assertRaises(RuntimeError, t.raise_exception, MyException, 'test')
473473
self.assertEqual(t.thread_id, -1)
474474
self.assertRaises(RuntimeError, t.throw, MyException)
475475
self.assertEqual(t.thread_id, -1)

0 commit comments

Comments
 (0)