Author ashkop
Recipients ashkop, berker.peksag, ezio.melotti, flox, martin.panter, serhiy.storchaka
Date 2015-04-09.13:34:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428586475.19.0.232324818792.issue18383@psf.upfronthosting.co.za>
In-reply-to
Content
So, there are actually two issues, both of them causing the original warning. 

First issue was pointed out by Florent Xicluna. warnings.filterwarnings() method can create duplicates in warnings.filters.

Second issue is that assertWarns() works incorrectly in test_warnings.py due to use of import_fresh_module(). This produced original warning even without -Wd flag.

I attached a patch that fixes both issues for review. It includes a fix of previous patch, so no new warnings are produced. But perhaps we should separate these issues and create two patches.
History
Date User Action Args
2015-04-09 13:34:35ashkopsetrecipients: + ashkop, ezio.melotti, flox, berker.peksag, martin.panter, serhiy.storchaka
2015-04-09 13:34:35ashkopsetmessageid: <1428586475.19.0.232324818792.issue18383@psf.upfronthosting.co.za>
2015-04-09 13:34:35ashkoplinkissue18383 messages
2015-04-09 13:34:35ashkopcreate