Skip to content

Commit 811ff97

Browse files
gpsheadiritkatriel
authored andcommitted
pythongh-84559: skip the test when no multiprocessing (wasm, etc) (python#101530)
skip test when no _multiprocessing (wasm, etc)
1 parent 90ff55e commit 811ff97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_multiprocessing_defaults.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
import multiprocessing
55
from multiprocessing.context import DefaultForkDeprecationWarning
66
import sys
7-
from test.support import threading_helper
7+
from test.support import import_helper, threading_helper
88
import unittest
99
import warnings
1010

11+
# Skip tests if _multiprocessing wasn't built.
12+
import_helper.import_module('_multiprocessing')
13+
1114

1215
def do_nothing():
1316
pass

0 commit comments

Comments
 (0)