mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
comment out test added in r76438, which caused refleaks
This commit is contained in:
parent
bce783757f
commit
9a03f2fd03
1 changed files with 18 additions and 18 deletions
|
@ -1723,24 +1723,24 @@ class _TestLogging(BaseTestCase):
|
||||||
logger.setLevel(level=LOG_LEVEL)
|
logger.setLevel(level=LOG_LEVEL)
|
||||||
|
|
||||||
|
|
||||||
class _TestLoggingProcessName(BaseTestCase):
|
# class _TestLoggingProcessName(BaseTestCase):
|
||||||
|
#
|
||||||
def handle(self, record):
|
# def handle(self, record):
|
||||||
assert record.processName == multiprocessing.current_process().name
|
# assert record.processName == multiprocessing.current_process().name
|
||||||
self.__handled = True
|
# self.__handled = True
|
||||||
|
#
|
||||||
def test_logging(self):
|
# def test_logging(self):
|
||||||
handler = logging.Handler()
|
# handler = logging.Handler()
|
||||||
handler.handle = self.handle
|
# handler.handle = self.handle
|
||||||
self.__handled = False
|
# self.__handled = False
|
||||||
# Bypass getLogger() and side-effects
|
# # Bypass getLogger() and side-effects
|
||||||
logger = logging.getLoggerClass()(
|
# logger = logging.getLoggerClass()(
|
||||||
'multiprocessing.test.TestLoggingProcessName')
|
# 'multiprocessing.test.TestLoggingProcessName')
|
||||||
logger.addHandler(handler)
|
# logger.addHandler(handler)
|
||||||
logger.propagate = False
|
# logger.propagate = False
|
||||||
|
#
|
||||||
logger.warn('foo')
|
# logger.warn('foo')
|
||||||
assert self.__handled
|
# assert self.__handled
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test to verify handle verification, see issue 3321
|
# Test to verify handle verification, see issue 3321
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue