diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:05:05 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:05:05 (GMT) |
| commit | a3acea3e07dba03a22dc35ca17ad83baa82e3729 (patch) | |
| tree | 2a2e4f25b0ea350f0d828ce09b86f6dfbd214606 /Lib/test/test_ssl.py | |
| parent | 342fd18f5369863dfa0c44bc1f57476fdde587aa (diff) | |
| download | cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.zip cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.tar.gz cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.tar.bz2 | |
Issue #22340: Fix Python 3 warnings in Python 2 tests
Diffstat (limited to 'Lib/test/test_ssl.py')
| -rw-r--r-- | Lib/test/test_ssl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 351925e..eac994f 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -2365,7 +2365,8 @@ else: # now fetch the same data from the HTTPS server url = 'https://%s:%d/%s' % ( HOST, server.port, os.path.split(CERTFILE)[1]) - f = urllib.urlopen(url) + with support.check_py3k_warnings(): + f = urllib.urlopen(url) try: dlen = f.info().getheader("content-length") if dlen and (int(dlen) > 0): |
