[Python-checkins] cpython (2.7): remove py3k warning guard

benjamin.peterson python-checkins at python.org
Sun Nov 23 18:52:58 CET 2014


https://hg.python.org/cpython/rev/e6d63cfcd8e8
changeset:   93554:e6d63cfcd8e8
branch:      2.7
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun Nov 23 11:52:46 2014 -0600
summary:
  remove py3k warning guard

files:
  Lib/test/test_ssl.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2391,8 +2391,7 @@
             url = 'https://localhost:%d/%s' % (
                 server.port, os.path.split(CERTFILE)[1])
             context = ssl.create_default_context(cafile=CERTFILE)
-            with support.check_py3k_warnings():
-                f = urllib2.urlopen(url, context=context)
+            f = urllib2.urlopen(url, context=context)
             try:
                 dlen = f.info().getheader("content-length")
                 if dlen and (int(dlen) > 0):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list