[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
- Previous message: [Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341
- Next message: [Python-Dev] [RELEASED] Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341
- Next message: [Python-Dev] [RELEASED] Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]