]> granicus.if.org Git - python/commit
bpo-32088: Display Deprecation in debug mode (#4474)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 20 Nov 2017 17:47:03 +0000 (09:47 -0800)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 20 Nov 2017 17:47:03 +0000 (18:47 +0100)
commit895862aa01793a26e74512befb0c66a1da2587d6
treea65de848905ccd0541e15ca5584d69800e264ecf
parentc5a2071586f735d2a61d1756e7011cfbb6ce86c9
bpo-32088: Display Deprecation in debug mode (#4474)

When Python is build is debug mode (Py_DEBUG), DeprecationWarning,
PendingDeprecationWarning and ImportWarning warnings are now
displayed by default.

test_venv: run "-m pip" and "-m ensurepip._uninstall" with -W
ignore::DeprecationWarning since pip code is not part of Python.
Lib/test/test_venv.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2017-11-20-15-28-31.bpo-32088.mV-4Nu.rst [new file with mode: 0644]
Python/_warnings.c