Kaydet (Commit) 9a03f2fd authored tarafından Jesse Noller's avatar Jesse Noller

comment out test added in r76438, which caused refleaks

üst bce78375
......@@ -1723,24 +1723,24 @@ class _TestLogging(BaseTestCase):
logger.setLevel(level=LOG_LEVEL)
class _TestLoggingProcessName(BaseTestCase):
def handle(self, record):
assert record.processName == multiprocessing.current_process().name
self.__handled = True
def test_logging(self):
handler = logging.Handler()
handler.handle = self.handle
self.__handled = False
# Bypass getLogger() and side-effects
logger = logging.getLoggerClass()(
'multiprocessing.test.TestLoggingProcessName')
logger.addHandler(handler)
logger.propagate = False
logger.warn('foo')
assert self.__handled
# class _TestLoggingProcessName(BaseTestCase):
#
# def handle(self, record):
# assert record.processName == multiprocessing.current_process().name
# self.__handled = True
#
# def test_logging(self):
# handler = logging.Handler()
# handler.handle = self.handle
# self.__handled = False
# # Bypass getLogger() and side-effects
# logger = logging.getLoggerClass()(
# 'multiprocessing.test.TestLoggingProcessName')
# logger.addHandler(handler)
# logger.propagate = False
#
# logger.warn('foo')
# assert self.__handled
#
# Test to verify handle verification, see issue 3321
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment