]> granicus.if.org Git - python/commitdiff
Remove unused variable in test_urllibnet. (#1598)
authorSenthil Kumaran <skumaran@gatech.edu>
Tue, 16 May 2017 06:08:07 +0000 (23:08 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 06:08:07 +0000 (23:08 -0700)
Lib/test/test_urllibnet.py

index 865a7f4f5fb172e9240ad1e2fdb5b9df89c47fef..4103b6c07505d53bd88db487508dba9f207d75a7 100644 (file)
@@ -11,6 +11,7 @@ import time
 
 support.requires('network')
 
+
 class URLTimeoutTest(unittest.TestCase):
     # XXX this test doesn't seem to test anything useful.
 
@@ -25,7 +26,7 @@ class URLTimeoutTest(unittest.TestCase):
     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):
@@ -188,6 +189,7 @@ class urlretrieveNetworkTests(unittest.TestCase):
 
     def test_reporthook(self):
         records = []
+
         def recording_reporthook(blocks, block_size, total_size):
             records.append((blocks, block_size, total_size))