Commit f4ae35fa authored by Jesse Noller's avatar Jesse Noller

Merged revisions 76487 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76487 | jesse.noller | 2009-11-24 09:17:29 -0500 (Tue, 24 Nov 2009) | 1 line

  comment out test added in r76438, which caused refleaks
........
parent 4ca33d1d
...@@ -1724,24 +1724,24 @@ class _TestLogging(BaseTestCase): ...@@ -1724,24 +1724,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
......
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