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 jpe
Recipients jpe, steve.dower, tim.golden, vstinner, zach.ware
Date 2015-04-14.01:28:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428974924.14.0.409204034309.issue23719@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the 1st draft of a test for interrupts during time.sleep().  It creates a thread to generate the ctrl-c events which seems to work well (note that kill() on win32 is quite limited in terms of sending events to other processes).  The creation and use of the subthread probably could be improved.  I also needed to add a way of specifying creationflags for a subprocess so a new console could be created; otherwise the parent test process is also interrupted by the ctrl-c.

I have not tested the modified test on a non-win32 platform
History
Date User Action Args
2015-04-14 01:28:44jpesetrecipients: + jpe, vstinner, tim.golden, zach.ware, steve.dower
2015-04-14 01:28:44jpesetmessageid: <1428974924.14.0.409204034309.issue23719@psf.upfronthosting.co.za>
2015-04-14 01:28:44jpelinkissue23719 messages
2015-04-14 01:28:43jpecreate