A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-April/118682.html below:

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

[Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341 [Python-Dev] cpython: use assertWarns instead of check_warnings - Issue14341Senthil 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.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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4