On 3/7/2011 9:47 AM, Antoine Pitrou wrote:
On Mon, 7 Mar 2011 19:14:55 +1000
Nick Coghlan<[email protected]>  wrote:
On Mon, Mar 7, 2011 at 6:36 PM, John Arbash Meinel
<[email protected]>  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.

--
Terry Jan Reedy

_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to