Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 192e299

Browse files
author
Anselm Kruis
committed
Stackless issue #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 0f893de commit 192e299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stackless/unittests/test_thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ class MyException(Exception):
476476
self.assertEqual(t.thread_id, -1)
477477
self.assertRaises(RuntimeError, t.switch)
478478
self.assertEqual(t.thread_id, -1)
479-
self.assertRaises(MyException, t.raise_exception, MyException, 'test')
479+
self.assertRaises(RuntimeError, t.raise_exception, MyException, 'test')
480480
self.assertEqual(t.thread_id, -1)
481481
self.assertRaises(RuntimeError, t.throw, MyException)
482482
self.assertEqual(t.thread_id, -1)

0 commit comments

Comments
 (0)