summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllibnet.py
diff options
context:
space:
mode:
authorSenthil Kumaran <skumaran@gatech.edu>2017-05-16 06:08:07 (GMT)
committerGitHub <noreply@github.com>2017-05-16 06:08:07 (GMT)
commit1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb (patch)
tree4ba0ca52b0b88781ff3c4e2b509bb81ccb92df6c /Lib/test/test_urllibnet.py
parentf6e863d868a621594df2a8abe072b5d4766e7137 (diff)
downloadcpython-1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb.zip
cpython-1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb.tar.gz
cpython-1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb.tar.bz2
Remove unused variable in test_urllibnet. (#1598)
Diffstat (limited to 'Lib/test/test_urllibnet.py')
-rw-r--r--Lib/test/test_urllibnet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 865a7f4..4103b6c 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -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))