MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_waitstatus_to_exitcode

Method test_waitstatus_to_exitcode

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

Source from the content-addressed store, hash-verified

3544 self.check_waitpid(code='pass', exitcode=0)
3545
3546 def test_waitstatus_to_exitcode(self):
3547 exitcode = 23
3548 code = f'import sys; sys.exit({exitcode})'
3549 self.check_waitpid(code, exitcode=exitcode)
3550
3551 with self.assertRaises(TypeError):
3552 os.waitstatus_to_exitcode(0.0)
3553
3554 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
3555 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