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 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 <>
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 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.
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: <>
2015-04-09 13:34:35ashkoplinkissue18383 messages
2015-04-09 13:34:35ashkopcreate