Author kaizhu
Recipients BreamoreBoy, kaizhu, mark.dickinson
Date 2010-12-22.07:58:30
SpamBayes Score 7.0229e-08
Marked as misclassified No
Message-id <1293004716.16.0.718567163143.issue10756@psf.upfronthosting.co.za>
In-reply-to
Content
public@colinux 3 ~: python3.2
Python 3.2b2 (py3k, Dec 22 2010, 02:38:55) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import atexit; atexit.register(lambda:1/0)
<function <lambda> at 0xb7c7e12c>
>>> exit()
Error in atexit._run_exitfuncs:
TypeError: print_exception(): Exception expected for value, str found



might b related to Issue5089, so included those ppl to nosy.  this bug is subtle.  unit tests which explicitly 'raise' exceptions will not b caught, e.g. this will raise properly:

@exit.register
def foo(): raise ZeroDivisionError()
History
Date User Action Args
2010-12-22 07:58:36kaizhusetrecipients: + kaizhu, mark.dickinson, BreamoreBoy
2010-12-22 07:58:36kaizhusetmessageid: <1293004716.16.0.718567163143.issue10756@psf.upfronthosting.co.za>
2010-12-22 07:58:30kaizhulinkissue10756 messages
2010-12-22 07:58:30kaizhucreate