Message280054
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. |
|
Date |
User |
Action |
Args |
2016-11-04 16:02:43 | charlie.proctor | set | recipients:
+ charlie.proctor, christian.heimes, r.david.murray |
2016-11-04 16:02:42 | charlie.proctor | set | messageid: <1478275362.96.0.154533839276.issue19899@psf.upfronthosting.co.za> |
2016-11-04 16:02:42 | charlie.proctor | link | issue19899 messages |
2016-11-04 16:02:42 | charlie.proctor | create | |
|