(self)
| 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() |