[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

Matthias Bussonnier report at bugs.python.org
Tue Aug 25 16:25:41 CEST 2015


Matthias Bussonnier added the comment:

# unittest 

(Pending)DeprecationWarning are already enabled if no -W flags are given. 

# doctest

We enable the DW in REPL only if originate from `__main__`, this seem to be painful to do in doctest, as each doctest execute in a module that have the name of the file it is executed in. Should I enable globally regardless of where the DW comes from, or explore more ?

Should the doctest fail if such a warning is raised, or actually just print it to the output, letting the doctest pass ?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24294>
_______________________________________


More information about the Python-bugs-list mailing list