[issue23719] PEP 475: port test_eintr to Windows

John Ehresman report at bugs.python.org
Tue Apr 14 03:28:44 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23719>
_______________________________________


More information about the Python-bugs-list mailing list