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 <1479137792.62.0.415226807048.issue28688@psf.upfronthosting.co.za>
In-reply-to
Content
> 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:
    test_warnings

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
History
Date User Action Args
2016-11-14 15:36:32vstinnersetrecipients: + vstinner, martin.panter, serhiy.storchaka
2016-11-14 15:36:32vstinnersetmessageid: <1479137792.62.0.415226807048.issue28688@psf.upfronthosting.co.za>
2016-11-14 15:36:32vstinnerlinkissue28688 messages
2016-11-14 15:36:32vstinnercreate