Kaydet (Commit) d17ca238 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

#17471 - merge from 3.2

...@@ -64,6 +64,9 @@ class TrivialTests(unittest.TestCase): ...@@ -64,6 +64,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():
""" """
......
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