Skip to content

Commit 0cb39ea

Browse files
committed
Use test support to import multiprocessing modules.
1 parent e923a3b commit 0cb39ea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_logging.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import tempfile
4444
from test.support.script_helper import assert_python_ok, assert_python_failure
4545
from test import support
46+
from test.support import import_helper
4647
from test.support import os_helper
4748
from test.support import socket_helper
4849
from test.support import threading_helper
@@ -3924,10 +3925,8 @@ def test_90195(self):
39243925

39253926
def test_111615(self):
39263927
# See gh-111615
3927-
try:
3928-
import multiprocessing as mp
3929-
except ImportError: # see gh-113692
3930-
raise unittest.SkipTest('multiprocessing not available, needed for this test')
3928+
import_helper.import_module('_multiprocessing') # see gh-113692
3929+
mp = import_helper.import_module('multiprocessing')
39313930

39323931
config = {
39333932
'version': 1,

0 commit comments

Comments
 (0)