Use new form of with-statement instead of contextlib.nested().
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index c2da147..dc2d99d 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -174,7 +174,9 @@
(expected_err, url, req, type(err), err))
self.assert_(isinstance(err, expected_err), msg)
else:
- with support.transient_internet():
+ with support.time_out, \
+ support.socket_peer_reset, \
+ support.ioerror_peer_reset:
buf = f.read()
f.close()
debug("read %d bytes" % len(buf))