On Wed, Apr 11, 2012 at 09:33:30PM +0200, Georg Brandl wrote: > >+ > >+ with self.assertWarns(DeprecationWarning) as cm: > > req.add_data("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 _______________________________________________ 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