summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-03-14 21:44:15 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-03-14 21:44:15 (GMT)
commitea2835a86061d7846f1b8046e79a6aa9140b7ffd (patch)
tree9335f5a85ec502325c98e6d2f75bd683921ad325 /Lib/test
parented001842cf3d8c29a5721cd83d2dbec4bca77b02 (diff)
downloadcpython-ea2835a86061d7846f1b8046e79a6aa9140b7ffd.zip
cpython-ea2835a86061d7846f1b8046e79a6aa9140b7ffd.tar.gz
cpython-ea2835a86061d7846f1b8046e79a6aa9140b7ffd.tar.bz2
Raise ResourceDenied in test_urllib2net when the Net connection goes bad.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index b271626..888a738 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -264,7 +264,8 @@ class OtherNetworkTests(unittest.TestCase):
(expected_err, url, req, err))
self.assert_(isinstance(err, expected_err), msg)
else:
- buf = f.read()
+ with test_support.transient_internet():
+ buf = f.read()
f.close()
debug("read %d bytes" % len(buf))
debug("******** next url coming up...")