Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af3ba48 + d17ca23 commit 0085ce8Copy full SHA for 0085ce8
1 file changed
Lib/test/test_urllib2.py
@@ -64,6 +64,9 @@ def test_parse_http_list(self):
64
for string, list in tests:
65
self.assertEqual(urllib.request.parse_http_list(string), list)
66
67
+ def test_URLError_reasonstr(self):
68
+ err = urllib.error.URLError('reason')
69
+ self.assertIn(err.reason, str(err))
70
71
def test_request_headers_dict():
72
"""
0 commit comments