[Python-3000-checkins] r65852 - python/branches/py3k/Lib/test/test_threading.py
Nick Coghlan
ncoghlan at gmail.com
Wed Aug 20 11:24:39 CEST 2008
Benjamin Peterson wrote:
> On Tue, Aug 19, 2008 at 1:38 PM, Brett Cannon <brett at python.org> wrote:
>> Isn't testing warnings fun? =)
>
> Infuriatingly so...
Something I found interesting - the "multiple warnings" feature I
initially added to catch_warning() solely in response to an external
request, actually turned out to be necessary to test the Py3k warnings
for the __hash__ changes (since a single class definition can emit
multiple warnings).
Just think how hard this would all be if Brett hadn't added the original
version of that context manager :)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000-checkins
mailing list