MCPcopy Index your code
hub / github.com/python/cpython / test_waitpid_windows

Method test_waitpid_windows

Lib/test/test_os/test_os.py:3240–3245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3238
3239 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
3240 def test_waitpid_windows(self):
3241 # bpo-40138: test os.waitpid() and os.waitstatus_to_exitcode()
3242 # with exit code larger than INT_MAX.
3243 STATUS_CONTROL_C_EXIT = 0xC000013A
3244 code = f'import _winapi; _winapi.ExitProcess({STATUS_CONTROL_C_EXIT})'
3245 self.check_waitpid(code, exitcode=STATUS_CONTROL_C_EXIT)
3246
3247 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
3248 def test_waitstatus_to_exitcode_windows(self):

Callers

nothing calls this directly

Calls 1

check_waitpidMethod · 0.95

Tested by

no test coverage detected