Skip to content

Commit 902e79f

Browse files
committed
[3.12] pythongh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (python#120476)
Skip tests that require multiprocessing subprocess support.
1 parent bc95342 commit 902e79f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎Lib/test/test_logging.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,12 +3895,10 @@ def test_config_queue_handler(self):
38953895
msg = str(ctx.exception)
38963896
self.assertEqual(msg, "Unable to configure handler 'ah'")
38973897

3898+
@support.requires_subprocess()
38983899
def test_multiprocessing_queues(self):
38993900
# See gh-119819
39003901

3901-
# will skip test if it's not available
3902-
import_helper.import_module('_multiprocessing')
3903-
39043902
cd = copy.deepcopy(self.config_queue_handler)
39053903
from multiprocessing import Queue as MQ, Manager as MM
39063904
q1 = MQ() # this can't be pickled

0 commit comments

Comments
 (0)