[Python-Dev] cpython: use assertWarns instead of check_warnings (original) (raw)

Senthil Kumaran senthil at uthcode.com
Thu Apr 12 13:29:26 CEST 2012


On Wed, Apr 11, 2012 at 09:33:30PM +0200, Georg Brandl wrote:

>+ >+ with self.assertWarns(DeprecationWarning) as cm: > req.adddata("data")

There's no need for adding the "as cm" if you don't need the cm object.

I overlooked. Thanks for spotting. I have corrected it.

-- Senthil



More information about the Python-Dev mailing list