Skip to content

Commit 1bd7d29

Browse files
authored
Remove unused variable in test_urllibnet. (#1598)
1 parent f6e863d commit 1bd7d29

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
@@ -11,6 +11,7 @@
1111

1212
support.requires('network')
1313

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

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

3031

3132
class urlopenNetworkTests(unittest.TestCase):
@@ -188,6 +189,7 @@ def test_data_header(self):
188189

189190
def test_reporthook(self):
190191
records = []
192+
191193
def recording_reporthook(blocks, block_size, total_size):
192194
records.append((blocks, block_size, total_size))
193195

0 commit comments

Comments
 (0)