diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-03-14 21:44:15 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-03-14 21:44:15 (GMT) |
commit | ea2835a86061d7846f1b8046e79a6aa9140b7ffd (patch) | |
tree | 9335f5a85ec502325c98e6d2f75bd683921ad325 /Lib/test | |
parent | ed001842cf3d8c29a5721cd83d2dbec4bca77b02 (diff) | |
download | cpython-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.py | 3 |
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...") |