[3.12] gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (GH-120476) by miss-islington · Pull Request #120532 · python/cpython
@threading_helper.requires_working_threading() @support.requires_subprocess() def test_config_queue_handler(self): q = CustomQueue() dq = {
@support.requires_subprocess() def test_multiprocessing_queues(self): # See gh-119819
# will skip test if it's not available import_helper.import_module('_multiprocessing')
cd = copy.deepcopy(self.config_queue_handler) from multiprocessing import Queue as MQ, Manager as MM q1 = MQ() # this can't be pickled