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

Method test_mac_ver_with_fork

Lib/test/test_platform.py:428–441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

426
427 @unittest.skipUnless(sys.platform == 'darwin', "OSX only test")
428 def test_mac_ver_with_fork(self):
429 # Issue7895: platform.mac_ver() crashes when using fork without exec
430 #
431 # This test checks that the fix for that issue works.
432 #
433 pid = os.fork()
434 if pid == 0:
435 # child
436 info = platform.mac_ver()
437 os._exit(0)
438
439 else:
440 # parent
441 support.wait_process(pid, exitcode=0)
442
443 def test_ios_ver(self):
444 result = platform.ios_ver()

Callers

nothing calls this directly

Calls 1

_exitMethod · 0.45

Tested by

no test coverage detected