diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-11 04:22:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 04:22:53 -0800 |
commit | 97568761a6adb64d750fb0ea68484f67ae5e54f7 (patch) | |
tree | bcb3a19fb9a3509f80fa720ed413bd2f21aad6d0 | |
parent | 869e23e0af806ed3a10d0484827cb1b5f5cd5e5f (diff) | |
download | cpython-git-97568761a6adb64d750fb0ea68484f67ae5e54f7.tar.gz |
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 a932d0b496767b5aac14191cbc17093e502b6cb4)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
-rw-r--r-- | Lib/test/test_multiprocessing_fork.py | 3 | ||||
-rw-r--r-- | Lib/test/test_multiprocessing_forkserver.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing_fork.py b/Lib/test/test_multiprocessing_fork.py index daadcd3cc3..5000edb7c5 100644 --- a/Lib/test/test_multiprocessing_fork.py +++ b/Lib/test/test_multiprocessing_fork.py @@ -7,6 +7,9 @@ from test import support if support.PGO: raise unittest.SkipTest("test is not helpful for PGO") +if sys.platform == "win32": + raise unittest.SkipTest("fork is not available on Windows") + if sys.platform == 'darwin': raise unittest.SkipTest("test may crash on macOS (bpo-33725)") diff --git a/Lib/test/test_multiprocessing_forkserver.py b/Lib/test/test_multiprocessing_forkserver.py index 407bb3f9b6..6ad5faf9e8 100644 --- a/Lib/test/test_multiprocessing_forkserver.py +++ b/Lib/test/test_multiprocessing_forkserver.py @@ -1,11 +1,15 @@ import unittest import test._test_multiprocessing +import sys from test import support if support.PGO: raise unittest.SkipTest("test is not helpful for PGO") +if sys.platform == "win32": + raise unittest.SkipTest("forkserver is not available on Windows") + test._test_multiprocessing.install_tests_in_module_dict(globals(), 'forkserver') if __name__ == '__main__': |