cpython/Lib/test/test_warnings
Victor Stinner 747f48e2e9
bpo-32230: Set sys.warnoptions with -X dev (#4820)
Rather than supporting dev mode directly in the warnings module, this
instead adjusts the initialisation code to add an extra 'default'
entry to sys.warnoptions when dev mode is enabled.

This ensures that dev mode behaves *exactly* as if `-Wdefault` had
been passed on the command line, including in the way it interacts
with `sys.warnoptions`, and with other command line flags like `-bb`.

Fix also bpo-20361: have -b & -bb options take precedence over any
other warnings options.

Patch written by Nick Coghlan, with minor modifications of Victor Stinner.
2017-12-12 22:59:48 +01:00
..
data first step in backout of bad default->3.5 merge d085b4f779af. Create new head and fix whitespace. 2016-06-03 15:17:13 -07:00
__init__.py bpo-32230: Set sys.warnoptions with -X dev (#4820) 2017-12-12 22:59:48 +01:00
__main__.py