Skip to content

Commit

Permalink
[3.12] gh-119819: Update test to skip if _multiprocessing is unavaila…
Browse files Browse the repository at this point in the history
…ble. (GH-120067) (GH-120071)

(cherry picked from commit 109e108)
  • Loading branch information
miss-islington committed Jun 4, 2024
1 parent 210cd98 commit 008f9dd
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 @@ -3894,9 +3894,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 008f9dd

Please sign in to comment.