diff options
author | Christian Heimes <christian@python.org> | 2020-11-20 08:26:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 08:26:07 (GMT) |
commit | 03c8ddd9e94c7bddf1f06cf785027b8d2bf00ff0 (patch) | |
tree | e293c334cb6fee7b5826b21e26ab3c56a2d2fd20 /Lib/test/test_urllib2net.py | |
parent | 7ddbaa7a1b3e61847ee99658be6a7268a049e302 (diff) | |
download | cpython-03c8ddd9e94c7bddf1f06cf785027b8d2bf00ff0.zip cpython-03c8ddd9e94c7bddf1f06cf785027b8d2bf00ff0.tar.gz cpython-03c8ddd9e94c7bddf1f06cf785027b8d2bf00ff0.tar.bz2 |
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r-- | Lib/test/test_urllib2net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index c1d55ee..4750ad9 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -277,7 +277,7 @@ class OtherNetworkTests(unittest.TestCase): ioerror_peer_reset: buf = f.read() debug("read %d bytes" % len(buf)) - except socket.timeout: + except TimeoutError: print("<timeout: %s>" % url, file=sys.stderr) f.close() time.sleep(0.1) |