Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 192e299

Browse filesBrowse 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
Copy full SHA for 192e299

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Stackless/unittests/test_thread.py

Copy file name to clipboardExpand all lines: Stackless/unittests/test_thread.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.