mirror of https://github.com/python/cpython
#17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak
This commit is contained in:
parent
f5d7cc239e
commit
843fae9312
|
@ -47,6 +47,9 @@ class TrivialTests(unittest.TestCase):
|
||||||
for string, list in tests:
|
for string, list in tests:
|
||||||
self.assertEqual(urllib.request.parse_http_list(string), list)
|
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():
|
def test_request_headers_dict():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue