We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b5ed2 commit 27dfbf0Copy full SHA for 27dfbf0
Lib/test/test_urllibnet.py
@@ -12,6 +12,7 @@
12
13
support.requires('network')
14
15
+
16
class URLTimeoutTest(unittest.TestCase):
17
# XXX this test doesn't seem to test anything useful.
18
@@ -26,7 +27,7 @@ def tearDown(self):
26
27
def testURLread(self):
28
with support.transient_internet("www.example.com"):
29
f = urllib.request.urlopen("http://www.example.com/")
- x = f.read()
30
+ f.read()
31
32
33
class urlopenNetworkTests(unittest.TestCase):
@@ -189,6 +190,7 @@ def test_data_header(self):
189
190
191
def test_reporthook(self):
192
records = []
193
194
def recording_reporthook(blocks, block_size, total_size):
195
records.append((blocks, block_size, total_size))
196
0 commit comments