[3.13] gh-119819: Update test to skip if _multiprocessing is unavailable. (GH-120067) (GH-120072)

(cherry picked from commit 109e1082ea)
This commit is contained in:
Miss Islington (bot) 2024-06-04 21:50:48 +02:00 committed by GitHub
parent eea45ea213
commit 7edc6bd627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3926,9 +3926,9 @@ class ConfigDictTest(BaseTest):
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