[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-24 Thread Robert Collins
Robert Collins added the comment: I don't know if or when it was moved, but right now: ./python -m pydoc unittest.case.TestCase.assertLogs ... the docs for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24193

[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-24 Thread Michael Foord
Michael Foord added the comment: assertLogs is on a Python test suite helper, not TestCase itself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24193 ___

[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-23 Thread Robert Collins
Robert Collins added the comment: Parameters please, TestCase has nothing to do with this - it really shouldn't even have the method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24193

[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-05-14 Thread Berker Peksag
New submission from Berker Peksag: It would be useful if we could change the logging format of assertLogs when we use it: with self.assertLogs('foo', level='INFO', format='%(message)s') as cm: logging.getLogger('foo').info('first message') self.assertEqual(cm.output, ['first