https://github.com/python/cpython/commit/842b738129021f52293dc053e014ecb4fe095baa
commit: 842b738129021f52293dc053e014ecb4fe095baa
branch: main
author: Vinay Sajip <[email protected]>
committer: vsajip <[email protected]>
date: 2024-01-09T07:47:42Z
summary:

gh-113692: skip a test if multiprocessing isn't available. (GH-113704)

files:
M Lib/test/test_logging.py

diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 33db5d6443f6fd..0be26981184213 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -43,6 +43,7 @@
 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 @@ def test_90195(self):
 
     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,

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to