summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing_forkserver.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-12-11 11:31:16 (GMT)
committerGitHub <noreply@github.com>2018-12-11 11:31:16 (GMT)
commita932d0b496767b5aac14191cbc17093e502b6cb4 (patch)
tree0c9d5200f75d0fa3c5b59943d66a06dbc5d411bb /Lib/test/test_multiprocessing_forkserver.py
parentdc525f4315cdbe84693396d3f7a65a00425743bb (diff)
downloadcpython-a932d0b496767b5aac14191cbc17093e502b6cb4.zip
cpython-a932d0b496767b5aac14191cbc17093e502b6cb4.tar.gz
cpython-a932d0b496767b5aac14191cbc17093e502b6cb4.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_multiprocessing_forkserver.py')
-rw-r--r--Lib/test/test_multiprocessing_forkserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing_forkserver.py b/Lib/test/test_multiprocessing_forkserver.py
index 407bb3f..6ad5faf 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__':