From 0d1727835f44492c7357b013d94539e3891adf77 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 17 May 2017 10:51:01 -0700 Subject: [PATCH] Remove unused variable in test_urllibnet. (#1598) (#1600) (cherry picked from commit 1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb) --- Lib/test/test_urllibnet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 865a7f4f5f..4103b6c075 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)) -- 2.40.0