John Ehresman added the comment: 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 ---------- keywords: +patch nosy: +jpe Added file: http://bugs.python.org/file38976/win32-sleep-test.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23719> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com