Skip to content

Commit 5ee4aef

Browse files
vsajipmiss-islington
authored andcommitted
gh-113692: skip a test if multiprocessing isn't available. (GH-113704)
(cherry picked from commit 842b738) Co-authored-by: Vinay Sajip <[email protected]>
1 parent cd87737 commit 5ee4aef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_logging.py

Lines changed: 3 additions & 1 deletion
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
@@ -3894,7 +3895,8 @@ def test_90195(self):
38943895

38953896
def test_111615(self):
38963897
# See gh-111615
3897-
import multiprocessing as mp
3898+
import_helper.import_module('_multiprocessing') # see gh-113692
3899+
mp = import_helper.import_module('multiprocessing')
38983900

38993901
config = {
39003902
'version': 1,

0 commit comments

Comments
 (0)