Skip to content

Commit 008f9dd

Browse files
[3.12] gh-119819: Update test to skip if _multiprocessing is unavailable. (GH-120067) (GH-120071)
(cherry picked from commit 109e108)
1 parent 210cd98 commit 008f9dd

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
@@ -3894,9 +3894,9 @@ def test_config_queue_handler(self):
38943894
msg = str(ctx.exception)
38953895
self.assertEqual(msg, "Unable to configure handler 'ah'")
38963896

3897-
@unittest.skipIf(support.is_wasi, "WASI does not have multiprocessing.")
38983897
def test_multiprocessing_queues(self):
38993898
# See gh-119819
3899+
import_helper.import_module('_multiprocessing') # will skip test if it's not available
39003900
cd = copy.deepcopy(self.config_queue_handler)
39013901
from multiprocessing import Queue as MQ, Manager as MM
39023902
q1 = MQ() # this can't be pickled

0 commit comments

Comments
 (0)