mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (#120476)
Skip tests that require multiprocessing subprocess support.
This commit is contained in:
parent
e3b6cff331
commit
92f6d400f7
1 changed files with 2 additions and 3 deletions
|
@ -3898,6 +3898,7 @@ class ConfigDictTest(BaseTest):
|
||||||
self.addCleanup(os.remove, fn)
|
self.addCleanup(os.remove, fn)
|
||||||
|
|
||||||
@threading_helper.requires_working_threading()
|
@threading_helper.requires_working_threading()
|
||||||
|
@support.requires_subprocess()
|
||||||
def test_config_queue_handler(self):
|
def test_config_queue_handler(self):
|
||||||
q = CustomQueue()
|
q = CustomQueue()
|
||||||
dq = {
|
dq = {
|
||||||
|
@ -3926,12 +3927,10 @@ 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'")
|
||||||
|
|
||||||
|
@support.requires_subprocess()
|
||||||
def test_multiprocessing_queues(self):
|
def test_multiprocessing_queues(self):
|
||||||
# See gh-119819
|
# See gh-119819
|
||||||
|
|
||||||
# will skip test if it's not available
|
|
||||||
import_helper.import_module('_multiprocessing')
|
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue