Victor Stinner
540a81c720
Issue #21925 : Fix test_warnings for release mode
...
Use -Wd comment line option to log the ResourceWarning.
2016-03-25 09:51:14 +01:00
Victor Stinner
27461683a9
warnings.formatwarning(): catch exceptions
...
Issue #21925 : warnings.formatwarning() now catches exceptions on
linecache.getline(...) to be able to log ResourceWarning emitted late during
the Python shutdown process.
2016-03-25 00:30:32 +01:00
Victor Stinner
e0511e797c
Fix test_warnings.test_improper_option()
...
test_warnings: only run test_improper_option() and test_warnings_bootstrap()
once. The unit test doesn't depend on self.module.
2016-03-25 00:28:56 +01:00
Steve Dower
96d4943846
Reapplied change to test_warnings.py to test_warnings/__init__.py.
2015-09-06 22:30:40 -07:00
Larry Hastings
714e49371b
Issue #24305 : Prevent import subsystem stack frames from being counted
...
by the warnings.warn(stacklevel=) parameter.
2015-09-06 00:39:37 -07:00