https://github.com/python/cpython/commit/7edc6bd6276ae857928ee7b0e84817c78292939f
commit: 7edc6bd6276ae857928ee7b0e84817c78292939f
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: vsajip <[email protected]>
date: 2024-06-04T20:50:48+01:00
summary:
[3.13] gh-119819: Update test to skip if _multiprocessing is unavailable.
(GH-120067) (GH-120072)
(cherry picked from commit 109e1082ea92f89d42cd70f2cc7ca6fba6be9bab)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index d3e5ac2be2e21e..0c9a24e58dfd8c 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]