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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24294>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to