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

Method test_waitstatus_to_exitcode

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

Source from the content-addressed store, hash-verified

3229 self.check_waitpid(code='pass', exitcode=0)
3230
3231 def test_waitstatus_to_exitcode(self):
3232 exitcode = 23
3233 code = f'import sys; sys.exit({exitcode})'
3234 self.check_waitpid(code, exitcode=exitcode)
3235
3236 with self.assertRaises(TypeError):
3237 os.waitstatus_to_exitcode(0.0)
3238
3239 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
3240 def test_waitpid_windows(self):

Callers

nothing calls this directly

Calls 2

check_waitpidMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected