[Python-checkins] r78758 - in python/trunk: Lib/test/string_tests.py Lib/test/test_ascii_formatd.py Lib/test/test_fileio.py Lib/test/test_index.py Lib/test/test_random.py Lib/test/test_support.py Lib/test/test_unicode.py Misc/NEWS

Florent XICLUNA florent.xicluna at m4x.org
Sun Mar 7 16:53:50 CET 2010


2010/3/7 Nick Coghlan:
>
> The default here needs to be "quiet=True" so that it gives the same
> behaviour as the old one if you don't provide any arguments.

The test failure (with quiet=False) will highlight when the context
manager "check_warnings()" is no longer needed. It displays an helpful
message to identify which warnings are no longer raised.
Obviously these new features will not be backported to 2.6.

> The test_support module documentation also needs to be updated

Thank you for noticing the documentation. I will add these methods.


2010/3/7 Mark Dickinson:
>
> What's the reason for only allowing filtering on the warning category
> and message, but not on line number and module?
>

These helpers were changed to deal with #7092 more elegantly, while
keeping an eye on the Warnings, and see if they are effectively
raised.
We didn't need the (line, module) arguments for our use case.
But if you need them, someone could propose a patch.


-- 
Florent


More information about the Python-checkins mailing list