https://github.com/python/cpython/commit/cdd703d1313b546823882663ca94cf536f025f4a
commit: cdd703d1313b546823882663ca94cf536f025f4a
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: vsajip <[email protected]>
date: 2024-01-09T08:13:41Z
summary:
[3.12] gh-113692: skip a test if multiprocessing isn't available. (GH-113704)
(GH-113844)
(cherry picked from commit 842b738129021f52293dc053e014ecb4fe095baa)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index df08ccd362a073..635dd7c26f6eed 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
@@ -3894,7 +3895,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]