]> granicus.if.org Git - python/commit
Issue #24305: Prevent import subsystem stack frames from being counted
authorLarry Hastings <larry@hastings.org>
Sun, 6 Sep 2015 07:39:37 +0000 (00:39 -0700)
committerLarry Hastings <larry@hastings.org>
Sun, 6 Sep 2015 07:39:37 +0000 (00:39 -0700)
commit714e49371b8d73059cf19f92a8566dcd20c6089a
tree1a90551d36b0ebe9b760ec948fe7bd3e5c6d0cee
parent62b24624dd3eec75869372e08d5ecbc4b8976101
Issue #24305: Prevent import subsystem stack frames from being counted
by the warnings.warn(stacklevel=) parameter.
Lib/test/test_warnings/__init__.py [moved from Lib/test/test_warnings.py with 97% similarity]
Lib/test/test_warnings/__main__.py [new file with mode: 0644]
Lib/test/test_warnings/data/import_warning.py [new file with mode: 0644]
Lib/test/test_warnings/data/stacklevel.py [moved from Lib/test/warning_tests.py with 100% similarity]
Lib/warnings.py
Misc/NEWS
Python/_warnings.c