Skip to content

Commit

Permalink
gh-119819: Update test to skip if _multiprocessing is unavailable. (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip authored Jun 4, 2024
1 parent 710cbea commit 109e108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3926,9 +3926,9 @@ def test_config_queue_handler(self):
msg = str(ctx.exception)
self.assertEqual(msg, "Unable to configure handler 'ah'")

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

0 comments on commit 109e108

Please sign in to comment.