]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused variable in test_urllibnet. (#1598) (#1599)
authorSenthil Kumaran <skumaran@gatech.edu>
Tue, 16 May 2017 15:36:38 +0000 (08:36 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 15:36:38 +0000 (08:36 -0700)
(cherry picked from commit 1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb)

Lib/test/test_urllibnet.py

index 8379f1a512e94f7eb3414865e8b9b2710213cbd6..b9b1eaaad47eebee27402d183147f1656d9a1cc7 100644 (file)
@@ -12,6 +12,7 @@ import time
 
 support.requires('network')
 
+
 class URLTimeoutTest(unittest.TestCase):
     # XXX this test doesn't seem to test anything useful.
 
@@ -26,7 +27,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):
@@ -189,6 +190,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))