support.requires('network')
+
class URLTimeoutTest(unittest.TestCase):
# XXX this test doesn't seem to test anything useful.
def testURLread(self):
with support.transient_internet("www.example.com"):
f = urllib.request.urlopen("http://www.example.com/")
- x = f.read()
+ f.read()
class urlopenNetworkTests(unittest.TestCase):
def test_reporthook(self):
records = []
+
def recording_reporthook(blocks, block_size, total_size):
records.append((blocks, block_size, total_size))