Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #27528: Merge warning doc and test from 3.5 | Martin Panter | 2016-07-19 | 1 | -0/+12 |
|\ | |||||
| * | Issue #27528: Document and test warning messages must match at beginning | Martin Panter | 2016-07-19 | 1 | -0/+12 |
| | | |||||
* | | Issue #19527: Fixed tests with defined COUNT_ALLOCS. | Serhiy Storchaka | 2016-07-03 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #19527: Fixed tests with defined COUNT_ALLOCS. | Serhiy Storchaka | 2016-07-03 | 1 | -0/+1 |
| | | |||||
| * | first step in backout of bad default->3.5 merge d085b4f779af. Create new ↵ | Ned Deily | 2016-06-03 | 1 | -1/+1 |
| | | | | | | | | head and fix whitespace. | ||||
* | | Merge 3.5 (test_warnings) | Victor Stinner | 2016-05-26 | 1 | -1/+9 |
|\ \ | |/ | |||||
| * | test_warnings: catch stderr and check warning | Victor Stinner | 2016-05-26 | 1 | -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: Merge warnings fix from 3.5 | Martin Panter | 2016-05-26 | 1 | -0/+47 |
|\ \ | |/ | |||||
| * | Issue #18383: Avoid adding duplicate filters when warnings is reloaded | Martin Panter | 2016-05-26 | 1 | -0/+47 |
| | | | | | | | | Based on patch by Alex Shkop. | ||||
| * | Issue #21925: Fix test_warnings for release mode | Victor Stinner | 2016-03-25 | 1 | -2/+2 |
| | | | | | | | | Use -Wd comment line option to log the ResourceWarning. | ||||
* | | Issue #21925: Fix test_warnings for release mode | Victor Stinner | 2016-03-25 | 1 | -2/+2 |
| | | | | | | | | Use -Wd comment line option to log the ResourceWarning. | ||||
* | | Merge 3.5 | Victor Stinner | 2016-03-24 | 1 | -6/+26 |
|\ \ | |/ | | | | | | | | | Issue #21925: warnings.formatwarning() now catches exceptions when calling linecache.getline() and tracemalloc.get_object_traceback() to be able to log ResourceWarning emitted late during the Python shutdown process. | ||||
| * | warnings.formatwarning(): catch exceptions | Victor Stinner | 2016-03-24 | 1 | -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 Stinner | 2016-03-24 | 1 | -6/+9 |
| | | | | | | | | | | test_warnings: only run test_improper_option() and test_warnings_bootstrap() once. The unit test doesn't depend on self.module. | ||||
* | | Issue #26588: remove debug traces from _tracemalloc. | Victor Stinner | 2016-03-22 | 1 | -1/+0 |
| | | |||||
* | | Issue #26588: skip test_warnings.test_tracemalloc() | Victor Stinner | 2016-03-22 | 1 | -0/+1 |
| | | |||||
* | | Try again to fix test_warnings on Windows | Victor Stinner | 2016-03-19 | 1 | -0/+2 |
| | | | | | | | | Issue #26567: normalize newlines in test_tracemalloc. | ||||
* | | Try to fix test_warnings on Windows | Victor Stinner | 2016-03-19 | 1 | -8/+10 |
| | | | | | | | | Issue #26567. | ||||
* | | On ResourceWarning, log traceback where the object was allocated | Victor Stinner | 2016-03-19 | 1 | -0/+30 |
| | | | | | | | | | | | | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated. | ||||
* | | Add _showwarnmsg() and _formatwarnmsg() to warnings | Victor Stinner | 2016-03-18 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26568: add new _showwarnmsg() and _formatwarnmsg() functions to the warnings module. The C function warn_explicit() now calls warnings._showwarnmsg() with a warnings.WarningMessage as parameter, instead of calling warnings.showwarning() with multiple parameters. _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was replaced. | ||||
* | | Merge from 3.5 | Steve Dower | 2015-09-07 | 1 | -1/+1 |
|/ | |||||
* | Reapplied change to test_warnings.py to test_warnings/__init__.py. | Steve Dower | 2015-09-07 | 1 | -0/+6 |
| | |||||
* | Issue #24305: Prevent import subsystem stack frames from being counted | Larry Hastings | 2015-09-06 | 4 | -0/+970 |
by the warnings.warn(stacklevel=) parameter. |