mirror of https://github.com/python/cpython
gh-119819: Update test to skip if _multiprocessing is unavailable. (GH-120067)
This commit is contained in:
parent
710cbea660
commit
109e1082ea
|
@ -3926,9 +3926,9 @@ class ConfigDictTest(BaseTest):
|
||||||
msg = str(ctx.exception)
|
msg = str(ctx.exception)
|
||||||
self.assertEqual(msg, "Unable to configure handler 'ah'")
|
self.assertEqual(msg, "Unable to configure handler 'ah'")
|
||||||
|
|
||||||
@unittest.skipIf(support.is_wasi, "WASI does not have multiprocessing.")
|
|
||||||
def test_multiprocessing_queues(self):
|
def test_multiprocessing_queues(self):
|
||||||
# See gh-119819
|
# See gh-119819
|
||||||
|
import_helper.import_module('_multiprocessing') # will skip test if it's not available
|
||||||
cd = copy.deepcopy(self.config_queue_handler)
|
cd = copy.deepcopy(self.config_queue_handler)
|
||||||
from multiprocessing import Queue as MQ, Manager as MM
|
from multiprocessing import Queue as MQ, Manager as MM
|
||||||
q1 = MQ() # this can't be pickled
|
q1 = MQ() # this can't be pickled
|
||||||
|
|
Loading…
Reference in New Issue