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 charlie.proctor
Recipients charlie.proctor, christian.heimes, r.david.murray
Date 2016-11-04.16:02:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478275362.96.0.154533839276.issue19899@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the feedback David!

I've posted a revised patch with more descriptive comments and the restoration code moved into addCleanup.

As described in the comments, in the context of this test, the "main" thread is the one running the test suite... so rather than self.assertRaises(KeyboardInterrupt), I assert that appropriate SIGINTS are received. The lock is used to facilitate these assertions, since signals are asynchronous.
History
Date User Action Args
2016-11-04 16:02:43charlie.proctorsetrecipients: + charlie.proctor, christian.heimes, r.david.murray
2016-11-04 16:02:42charlie.proctorsetmessageid: <1478275362.96.0.154533839276.issue19899@psf.upfronthosting.co.za>
2016-11-04 16:02:42charlie.proctorlinkissue19899 messages
2016-11-04 16:02:42charlie.proctorcreate