Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d17ca23

Browse files
committed
#17471 - merge from 3.2
2 parents 779dab9 + 843fae9 commit d17ca23

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_urllib2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def test_parse_http_list(self):
6464
for string, list in tests:
6565
self.assertEqual(urllib.request.parse_http_list(string), list)
6666

67+
def test_URLError_reasonstr(self):
68+
err = urllib.error.URLError('reason')
69+
self.assertIn(err.reason, str(err))
6770

6871
def test_request_headers_dict():
6972
"""

0 commit comments

Comments
 (0)