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 vstinner
Recipients martin.panter, serhiy.storchaka, vstinner
Date 2016-11-14.15:36:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> How you got this warning? I can't reproduce.

Sorry, I forgot to mention that the warning only occurs if you run Python with -Werror:

@selma$ ./python -Werror -m test test_warnings
Run tests sequentially
0:00:00 [1/1] test_warnings
Warning -- warnings.filters was modified by test_warnings
test_warnings failed (env changed)

1 test altered the execution environment:

Total duration: 2 sec
Tests result: SUCCESS

Moreover, the warning goes away if you don't run tests in verbose mode!?

haypo@selma$ ./python -Werror -m test -v test_warnings
1 test OK.

Total duration: 2 sec
Tests result: SUCCESS
Date User Action Args
2016-11-14 15:36:32vstinnersetrecipients: + vstinner, martin.panter, serhiy.storchaka
2016-11-14 15:36:32vstinnersetmessageid: <>
2016-11-14 15:36:32vstinnerlinkissue28688 messages
2016-11-14 15:36:32vstinnercreate