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 ezio.melotti
Recipients brett.cannon, davide.rizzo, eric.araujo, ezio.melotti, michael.foord
Date 2010-11-29.08:41:33
SpamBayes Score 1.1411585e-06
Marked as misclassified No
Message-id <1291020098.23.0.699735793993.issue10535@psf.upfronthosting.co.za>
In-reply-to
Content
Attached a new patch.

A few comments about it:
1) A new category for UnittestWarnings could still be added to make it easier to filter warnings using the -W python flags and thus providing more control;
2) I didn't change the deprecation message in the patch -- I will probably do it in a separate commit;
3) The patch touches a few unrelated unittest/test/test_*.py files that were checking for the number of args explicitely;
4) In order to test the different combinations of flags/args I created a new _test_warnings.py file called from test_runner.py via subprocess;
5) unittest warnings are now printed only once even when 'always' is passed as an arg, but not when it's set with -W (this somehow addresses the "limitation" described in my previous message);
History
Date User Action Args
2010-11-29 08:41:38ezio.melottisetrecipients: + ezio.melotti, brett.cannon, eric.araujo, michael.foord, davide.rizzo
2010-11-29 08:41:38ezio.melottisetmessageid: <1291020098.23.0.699735793993.issue10535@psf.upfronthosting.co.za>
2010-11-29 08:41:34ezio.melottilinkissue10535 messages
2010-11-29 08:41:34ezio.melotticreate