classification
Title: Re-importing _warnings changes warnings.filters
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, brett.cannon
Priority: low Keywords:

Created on 2012-05-11 19:40 by brett.cannon, last changed 2012-05-12 17:13 by Arfrever.

Messages (1)
msg160446 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012-05-11 19:40
If you run test.test_warnings it reports that warnings.filters changed. If you comment out the import of c_warnings in that module, the warning goes away (this happens with running on tests).

It looks like _PyWarnings_Init() itself doesn't trigger a reprocessing of the sys.warnoptions as an import of warnings.py does, and thus the change in warnings.filter.
History
Date User Action Args
2012-05-12 17:13:47Arfreversetnosy: + Arfrever
2012-05-11 19:40:15brett.cannoncreate