]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-119819: Update test to skip if _multiprocessing is unavailable. (GH-120067...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jun 2024 19:43:52 +0000 (21:43 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 19:43:52 +0000 (20:43 +0100)
(cherry picked from commit 109e1082ea92f89d42cd70f2cc7ca6fba6be9bab)

Lib/test/test_logging.py

index d2a392bed1c8a73599bb0827a4958aa739c2e562..38caa56dbc5f3e31ba5974b35cd0525970080fef 100644 (file)
@@ -3894,9 +3894,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