summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27528: Document and test warning messages must match at beginningMartin Panter2016-07-191-0/+12
|
* Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+1
|
* first step in backout of bad default->3.5 merge d085b4f779af. Create new ↵Ned Deily2016-06-031-1/+1
| | | | head and fix whitespace.
* test_warnings: catch stderr and check warningVictor Stinner2016-05-261-1/+9
| | | | | Check the user warning in test_error_after_default() to not pollute the output, and check the warning logged into stderr.
* Issue #18383: Avoid adding duplicate filters when warnings is reloadedMartin Panter2016-05-261-0/+47
| | | | Based on patch by Alex Shkop.
* Issue #21925: Fix test_warnings for release modeVictor Stinner2016-03-251-2/+2
| | | | Use -Wd comment line option to log the ResourceWarning.
* warnings.formatwarning(): catch exceptionsVictor Stinner2016-03-241-0/+17
| | | | | | Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
* Fix test_warnings.test_improper_option()Victor Stinner2016-03-241-6/+9
| | | | | test_warnings: only run test_improper_option() and test_warnings_bootstrap() once. The unit test doesn't depend on self.module.
* Reapplied change to test_warnings.py to test_warnings/__init__.py.Steve Dower2015-09-071-0/+6
|
* Issue #24305: Prevent import subsystem stack frames from being countedLarry Hastings2015-09-064-0/+970
by the warnings.warn(stacklevel=) parameter.