Re: [Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341

2012-04-12 Thread Senthil Kumaran
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.

Re: [Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341

2012-04-11 Thread Georg Brandl
On 11.04.2012 17:06, senthil.kumaran wrote: http://hg.python.org/cpython/rev/751c7b81f6ee changeset: 76241:751c7b81f6ee parent: 76232:8a47d2322df0 user:Senthil Kumaran date:Wed Apr 11 23:05:49 2012 +0800 summary: use assertWarns instead of check_warnings - Issue14341 fi