Skip to content

Commit e923a3b

Browse files
committed
gh-113692: skip a test if multiprocessing isn't available.
1 parent 1ae7ceb commit e923a3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_logging.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3924,7 +3924,10 @@ def test_90195(self):
39243924

39253925
def test_111615(self):
39263926
# See gh-111615
3927-
import multiprocessing as mp
3927+
try:
3928+
import multiprocessing as mp
3929+
except ImportError: # see gh-113692
3930+
raise unittest.SkipTest('multiprocessing not available, needed for this test')
39283931

39293932
config = {
39303933
'version': 1,

0 commit comments

Comments
 (0)