]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119819: Update test to skip if _multiprocessing is unavailable. (GH-120067)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 4 Jun 2024 19:16:43 +0000 (20:16 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 19:16:43 +0000 (20:16 +0100)
Lib/test/test_logging.py

index d3e5ac2be2e21e5d0d95a7809099c141a1a082fc..0c9a24e58dfd8cfb19f3db33c0e57a79625878e1 100644 (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