| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The fix for catch_warnings() is the issue #28835 (not the issue #28089).
|
|
|
|
|
| |
Issue #28089: Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
head and fix whitespace.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Check the user warning in test_error_after_default() to not pollute the output,
and check the warning logged into stderr.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Use -Wd comment line option to log the ResourceWarning.
|
| |\
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Issue #26567: normalize newlines in test_tracemalloc.
|
| | |
| | |
| | |
| | | |
Issue #26567.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | | |
Based on patch by Alex Shkop.
|
| |/
|/|
| |
| | |
Use -Wd comment line option to log the ResourceWarning.
|
| |
| |
| |
| |
| |
| | |
Issue #21925: warnings.formatwarning() now catches exceptions on
linecache.getline(...) to be able to log ResourceWarning emitted late during
the Python shutdown process.
|
|/
|
|
|
| |
test_warnings: only run test_improper_option() and test_warnings_bootstrap()
once. The unit test doesn't depend on self.module.
|
| |
|
|
by the warnings.warn(stacklevel=) parameter.
|