
python-checkins at python
Nov 24, 2009, 8:20 AM
Post #1 of 1
(84 views)
Permalink
|
|
r76488 - in python/branches/py3k: Lib/test/test_multiprocessing.py
|
|
Author: jesse.noller Date: Tue Nov 24 15:22:24 2009 New Revision: 76488 Log: Merged revisions 76487 via svnmerge from svn+ssh://pythondev [at] svn/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 ........ Modified: python/branches/py3k/ (props changed) python/branches/py3k/Lib/test/test_multiprocessing.py Modified: python/branches/py3k/Lib/test/test_multiprocessing.py ============================================================================== --- python/branches/py3k/Lib/test/test_multiprocessing.py (original) +++ python/branches/py3k/Lib/test/test_multiprocessing.py Tue Nov 24 15:22:24 2009 @@ -1724,24 +1724,24 @@ 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 _______________________________________________ Python-checkins mailing list Python-checkins [at] python http://mail.python.org/mailman/listinfo/python-checkins
|