On 07/03/2011 19:45, Terry Reedy wrote:
On 3/7/2011 9:47 AM, Antoine Pitrou wrote:
On Mon, 7 Mar 2011 19:14:55 +1000
Nick Coghlan<ncogh...@gmail.com> wrote:
On Mon, Mar 7, 2011 at 6:36 PM, John Arbash Meinel
<j...@arbash-meinel.com> wrote:
Especially since, AIUI, deprecations are suppressed by default now.
True, but developers are expected to run their tests with them enabled.
Where do we actually document this?
Should be, and maybe is, in the nice new dev guide.
Also, the doc for unittest.TextTestRunner says "By default this runner
shows DeprecationWarning, PendingDeprecationWarning, and ImportWarning
even if they are ignored by default." The idea (discussed here) is
that developers of a module should see warnings when testing, even if
users of the module do not. I am not sure whether above applies when
running through unittest.main, but it should.
I believe it does apply through unittest.main() - Ezio would know best
as he implemented this feature though.
All the best,
Michael
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com