Skip to content

Commit 27dfbf0

Browse files
authored
Remove unused variable in test_urllibnet. (#1598) (#1599)
(cherry picked from commit 1bd7d29)
1 parent 24b5ed2 commit 27dfbf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_urllibnet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
support.requires('network')
1414

15+
1516
class URLTimeoutTest(unittest.TestCase):
1617
# XXX this test doesn't seem to test anything useful.
1718

@@ -26,7 +27,7 @@ def tearDown(self):
2627
def testURLread(self):
2728
with support.transient_internet("www.example.com"):
2829
f = urllib.request.urlopen("http://www.example.com/")
29-
x = f.read()
30+
f.read()
3031

3132

3233
class urlopenNetworkTests(unittest.TestCase):
@@ -189,6 +190,7 @@ def test_data_header(self):
189190

190191
def test_reporthook(self):
191192
records = []
193+
192194
def recording_reporthook(blocks, block_size, total_size):
193195
records.append((blocks, block_size, total_size))
194196

0 commit comments

Comments
 (0)