| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
warnings.warn_explicit. (GH-3219) (#3775)
(cherry picked from commit 91fb0afe181986b48abfc6092dcca912b39de51d)
|
|
|
|
|
| |
bad __name__ global. (GH-3717) (#3730)
(cherry picked from commit 5d3e80021ab33360191eb0fbff34e0246c913884)
|
|
|
|
|
|
| |
warnings.defaultaction. (GH-3496) (#3509)
Patch by Oren Milman..
(cherry picked from commit 9d984fd2b097c8c29479d1c3eb740995fe1ccb0d)
|
|
|
|
|
| |
is not a dictionary. (GH-3485). (#3494)
(cherry picked from commit 252033d50effa08046ac34fcc406bc99796ab88b)
|
|
|
|
|
| |
bpo-26568, bpo-30812: Fix test_showwarnmsg_missing(): restore the
attribute after removing it.
(cherry picked from commit 7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0)
|
|
|
|
| |
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.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Based on patch by Alex Shkop.
|
| |
| |
| |
| | |
Use -Wd comment line option to log the ResourceWarning.
|
| |
| |
| |
| | |
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 #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.
|
| | |
|
| | |
|
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
|
by the warnings.warn(stacklevel=) parameter.
|