From: Gregory P. Smith Date: Fri, 3 Feb 2023 01:14:23 +0000 (-0800) Subject: gh-84559: skip the test when no multiprocessing (wasm, etc) (#101530) X-Git-Tag: v3.12.0a5~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dcae3f0c3e9072251217e814a9438670e5f1e40;p=thirdparty%2FPython%2Fcpython.git gh-84559: skip the test when no multiprocessing (wasm, etc) (#101530) skip test when no _multiprocessing (wasm, etc) --- diff --git a/Lib/test/test_multiprocessing_defaults.py b/Lib/test/test_multiprocessing_defaults.py index 1da4c0652383..7ea872fef20d 100644 --- a/Lib/test/test_multiprocessing_defaults.py +++ b/Lib/test/test_multiprocessing_defaults.py @@ -4,10 +4,13 @@ from inspect import currentframe, getframeinfo import multiprocessing from multiprocessing.context import DefaultForkDeprecationWarning import sys -from test.support import threading_helper +from test.support import import_helper, threading_helper import unittest import warnings +# Skip tests if _multiprocessing wasn't built. +import_helper.import_module('_multiprocessing') + def do_nothing(): pass