Skip to content

Commit

Permalink
[3.12] pythongh-119819: Conditional skip of logging tests that requir…
Browse files Browse the repository at this point in the history
…e multiprocessing subprocess support (python#120476)

Skip tests that require multiprocessing subprocess support.
  • Loading branch information
freakboy3742 committed Aug 5, 2024
1 parent bc95342 commit 902e79f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3895,12 +3895,10 @@ def test_config_queue_handler(self):
msg = str(ctx.exception)
self.assertEqual(msg, "Unable to configure handler 'ah'")

@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
Expand Down

0 comments on commit 902e79f

Please sign in to comment.