summaryrefslogtreecommitdiffstats
path: root/Lib/test/win_console_handler.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 85315 via svnmerge fromHirokazu Yamamoto2010-10-081-0/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85315 | hirokazu.yamamoto | 2010-10-08 17:38:15 +0900 | 1 line Issue #9978: Wait until subprocess completes initialization. (Win32KillTests in test_os) ........
* Merged revisions 85109 via svnmerge fromBrian Curtin2010-09-291-2/+2
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85109 | brian.curtin | 2010-09-29 09:51:42 -0500 (Wed, 29 Sep 2010) | 4 lines Fix #9978. WINFUNCTYPE is from ctypes, not from ctypes.wintypes. r85073 changed the importing in wintypes to not use *, so the previous usage here became even more incorrect. ........
* Fix a failing test on an apparently slow Windows buildbot.Brian Curtin2010-04-051-1/+2
| | | | | | | On slower Windows machines, waiting 0.1 seconds can sometimes not be enough for a subprocess to start and be ready to accept signals, causing the test to fail. One buildbot is also choking on input()/EOFError so that was changed to not depend on input.
* set svn:eol-style on new fileBenjamin Peterson2010-04-021-42/+42
|
* Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-0/+42
os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.