mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
#17471 - merge from 3.2
This commit is contained in:
commit
d17ca23828
1 changed files with 3 additions and 0 deletions
|
@ -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():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue