Skip to content

Commit a6fb23a

Browse files
vsajipbarneygale
authored andcommitted
pythongh-119819: Update test to skip if _multiprocessing is unavailable. (pythonGH-120067)
1 parent bde52f1 commit a6fb23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3926,9 +3926,9 @@ def test_config_queue_handler(self):
39263926
msg = str(ctx.exception)
39273927
self.assertEqual(msg, "Unable to configure handler 'ah'")
39283928

3929-
@unittest.skipIf(support.is_wasi, "WASI does not have multiprocessing.")
39303929
def test_multiprocessing_queues(self):
39313930
# See gh-119819
3931+
import_helper.import_module('_multiprocessing') # will skip test if it's not available
39323932
cd = copy.deepcopy(self.config_queue_handler)
39333933
from multiprocessing import Queue as MQ, Manager as MM
39343934
q1 = MQ() # this can't be pickled

0 commit comments

Comments
 (0)