Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a932d0b

Browse files
authored
bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086)
Forkserver and fork are not available on Windows and therefore these test must be skipped.
1 parent dc525f4 commit a932d0b

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/test/test_multiprocessing_fork.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
if support.PGO:
88
raise unittest.SkipTest("test is not helpful for PGO")
99

10+
if sys.platform == "win32":
11+
raise unittest.SkipTest("fork is not available on Windows")
12+
1013
if sys.platform == 'darwin':
1114
raise unittest.SkipTest("test may crash on macOS (bpo-33725)")
1215

Lib/test/test_multiprocessing_forkserver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import unittest
22
import test._test_multiprocessing
33

4+
import sys
45
from test import support
56

67
if support.PGO:
78
raise unittest.SkipTest("test is not helpful for PGO")
89

10+
if sys.platform == "win32":
11+
raise unittest.SkipTest("forkserver is not available on Windows")
12+
913
test._test_multiprocessing.install_tests_in_module_dict(globals(), 'forkserver')
1014

1115
if __name__ == '__main__':

0 commit comments

Comments
 (0)