homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients berker.peksag, ezio.melotti, michael.foord, rbcollins
Date 2015年05月14日.12:03:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431605029.99.0.444835301939.issue24193@psf.upfronthosting.co.za>
In-reply-to
Content
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 message'])
Or maybe with a class attribute like maxDiff:
 logFormat = '%(message)s'
History
Date User Action Args
2015年05月14日 12:03:50berker.peksagsetrecipients: + berker.peksag, rbcollins, ezio.melotti, michael.foord
2015年05月14日 12:03:49berker.peksagsetmessageid: <1431605029.99.0.444835301939.issue24193@psf.upfronthosting.co.za>
2015年05月14日 12:03:49berker.peksaglinkissue24193 messages
2015年05月14日 12:03:49berker.peksagcreate

AltStyle によって変換されたページ (->オリジナル) /