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 f6e863d commit 1bd7d29Copy full SHA for 1bd7d29
Lib/test/test_urllibnet.py
@@ -11,6 +11,7 @@
11
12
support.requires('network')
13
14
+
15
class URLTimeoutTest(unittest.TestCase):
16
# XXX this test doesn't seem to test anything useful.
17
@@ -25,7 +26,7 @@ def tearDown(self):
25
26
def testURLread(self):
27
with support.transient_internet("www.example.com"):
28
f = urllib.request.urlopen("http://www.example.com/")
- x = f.read()
29
+ f.read()
30
31
32
class urlopenNetworkTests(unittest.TestCase):
@@ -188,6 +189,7 @@ def test_data_header(self):
188
189
190
def test_reporthook(self):
191
records = []
192
193
def recording_reporthook(blocks, block_size, total_size):
194
records.append((blocks, block_size, total_size))
195
0 commit comments