Commit Graph

10 Commits

Author SHA1 Message Date
Benjamin Peterson c9c0f201fe convert old fail* assertions to assert* 2009-06-30 23:06:06 +00:00
Amaury Forgeot d'Arc db26f7c137 Issue 3611: in some cases (a __del__ re-raising an exception, when called from inside
an 'except' clause), the exception __context__ would be reset to None.
This crases the interpreter if this precisely happens inside PyErr_SetObject.

- now the __context__ is properly preserved
- in any case, PyErr_SetObject now saves the current exc_value in a local variable, to
avoid such crashes in the future.

Reviewer: Antoine Pitrou.
2008-08-29 07:13:32 +00:00
Benjamin Peterson 9b6760225a move test to a better location 2008-08-21 17:00:40 +00:00
Benjamin Peterson e65282114e implement chained exception tracebacks
patch from Antoine Pitrou #3112
2008-07-15 15:32:09 +00:00
Guido van Rossum b4fb6e4d27 Implicit exception chaining via __context__ (PEP 3134).
Patch 3108 by Antooine Pitrou.
2008-06-14 20:20:24 +00:00
Benjamin Peterson eec3d71379 #3021: Antoine Pitrou's Lexical exception handlers 2008-06-11 15:59:43 +00:00
Benjamin Peterson ee8712cda4 #2621 rename test.test_support to test.support 2008-05-20 21:35:26 +00:00
Collin Winter 1966f1c98f Fix refleaks exposed by test_raise. 2007-09-01 20:26:44 +00:00
Collin Winter 812567d3f8 Cut test_raise down to size. 2007-08-31 00:47:26 +00:00
Collin Winter 828f04ac3f Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00