Skip to content

Commit

Permalink
pythongh-119819: Update test to skip if _multiprocessing is unavailab…
Browse files Browse the repository at this point in the history
…le. (pythonGH-120067)

(cherry picked from commit 109e108)

Co-authored-by: Vinay Sajip <[email protected]>
  • Loading branch information
vsajip authored and miss-islington committed Jun 4, 2024
1 parent 93b95e9 commit e13464b
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 e13464b

Please sign in to comment.