mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Remove unused variable in test_urllibnet. (#1598)
This commit is contained in:
parent
f6e863d868
commit
1bd7d299bd
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ import time
|
||||||
|
|
||||||
support.requires('network')
|
support.requires('network')
|
||||||
|
|
||||||
|
|
||||||
class URLTimeoutTest(unittest.TestCase):
|
class URLTimeoutTest(unittest.TestCase):
|
||||||
# XXX this test doesn't seem to test anything useful.
|
# XXX this test doesn't seem to test anything useful.
|
||||||
|
|
||||||
|
@ -25,7 +26,7 @@ class URLTimeoutTest(unittest.TestCase):
|
||||||
def testURLread(self):
|
def testURLread(self):
|
||||||
with support.transient_internet("www.example.com"):
|
with support.transient_internet("www.example.com"):
|
||||||
f = urllib.request.urlopen("http://www.example.com/")
|
f = urllib.request.urlopen("http://www.example.com/")
|
||||||
x = f.read()
|
f.read()
|
||||||
|
|
||||||
|
|
||||||
class urlopenNetworkTests(unittest.TestCase):
|
class urlopenNetworkTests(unittest.TestCase):
|
||||||
|
@ -188,6 +189,7 @@ class urlretrieveNetworkTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_reporthook(self):
|
def test_reporthook(self):
|
||||||
records = []
|
records = []
|
||||||
|
|
||||||
def recording_reporthook(blocks, block_size, total_size):
|
def recording_reporthook(blocks, block_size, total_size):
|
||||||
records.append((blocks, block_size, total_size))
|
records.append((blocks, block_size, total_size))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue