]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113692: skip a test if multiprocessing isn't available. (GH-113704)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 9 Jan 2024 07:47:42 +0000 (07:47 +0000)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 07:47:42 +0000 (07:47 +0000)
Lib/test/test_logging.py

index 33db5d6443f6fd8c4efc0f964de2154c75ef54ab..0be269811842138754d52ffc2a82f13d1c82f356 100644 (file)
@@ -43,6 +43,7 @@ import sys
 import tempfile
 from test.support.script_helper import assert_python_ok, assert_python_failure
 from test import support
+from test.support import import_helper
 from test.support import os_helper
 from test.support import socket_helper
 from test.support import threading_helper
@@ -3924,7 +3925,8 @@ class ConfigDictTest(BaseTest):
 
     def test_111615(self):
         # See gh-111615
-        import multiprocessing as mp
+        import_helper.import_module('_multiprocessing')  # see gh-113692
+        mp = import_helper.import_module('multiprocessing')
 
         config = {
             'version': 1,