Commit 843fae93 authored by Senthil Kumaran's avatar Senthil Kumaran

#17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak

parent f5d7cc23
......@@ -47,6 +47,9 @@ class TrivialTests(unittest.TestCase):
for string, list in tests:
self.assertEqual(urllib.request.parse_http_list(string), list)
def test_URLError_reasonstr(self):
err = urllib.error.URLError('reason')
self.assertIn(err.reason, str(err))
def test_request_headers_dict():
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment