Skip to content

Remove unused variable in test_urllibnet. #1598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/test/test_urllibnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

support.requires('network')


class URLTimeoutTest(unittest.TestCase):
# XXX this test doesn't seem to test anything useful.

Expand All @@ -25,7 +26,7 @@ def tearDown(self):
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):
Expand Down Expand Up @@ -188,6 +189,7 @@ def test_data_header(self):

def test_reporthook(self):
records = []

def recording_reporthook(blocks, block_size, total_size):
records.append((blocks, block_size, total_size))

Expand Down