[Stackless-checkins] r55160 - stackless/branches/release25-maint/Stackless/unittests/test_exception.py
richard.tew
python-checkins at python.org
Sun May 6 22:47:43 CEST 2007
Author: richard.tew
Date: Sun May 6 22:47:40 2007
New Revision: 55160
Added:
stackless/branches/release25-maint/Stackless/unittests/test_exception.py
Log:
Added a test for the crasher where TaskletExit was incorrectly defined as to its exception type. It was fixed recently by Kristjan, but a test can't hurt.
Added: stackless/branches/release25-maint/Stackless/unittests/test_exception.py
==============================================================================
--- (empty file)
+++ stackless/branches/release25-maint/Stackless/unittests/test_exception.py Sun May 6 22:47:40 2007
@@ -0,0 +1,10 @@
+import unittest
+
+
+class TestException(unittest.TestCase):
+ def testTaskletExitCode(self):
+ # Tasklet exit was defined as the wrong kind of exception.
+ # When its code attribute was accessed the runtime would
+ # crash. This has been fixed.
+ exc = TaskletExit()
+ exc.code
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list