This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twouters
Recipients twouters
Date 2012-07-30.16:37:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343666222.08.0.345756863201.issue15505@psf.upfronthosting.co.za>
In-reply-to
Content
unittest.installHandler incorrectly assumes signal.SIGINT will always be set to a callable object, rather than signal.SIG_DFL or signal.SIG_IGN. This breaks if the test is being executed in an environment that e.g. ignores signal.SIGINT, like a bash script that executes 'make' in a subshell, because an attempt to call the original handler (for whatever reason) causes it to try and call an integer.

On top of that, the *tests* for unittest.installHandler in unittest/tests/test_break.py assume not just that signal.SIGINT is set to a callable object, but that they're set to signal.default_int_handler.
History
Date User Action Args
2012-07-30 16:37:02twouterssetrecipients: + twouters
2012-07-30 16:37:02twouterssetmessageid: <1343666222.08.0.345756863201.issue15505@psf.upfronthosting.co.za>
2012-07-30 16:37:01twouterslinkissue15505 messages
2012-07-30 16:37:01twouterscreate