Skip to content

Commit d55a896

Browse files
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. (cherry picked from commit a932d0b) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent f7404a5 commit d55a896

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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)