summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-19 20:44:17 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-19 20:44:17 (GMT)
commitd17ca23828287eb79f28de7c50acf25c29b41e4e (patch)
tree405cbb4dc7773ba5163b05fe6490fe016dc4d0f8 /Lib
parent779dab9447db4a2b139270de4401c2cf8af87363 (diff)
parent843fae93121ac7ac1088b0521773eff567e7b41c (diff)
downloadcpython-d17ca23828287eb79f28de7c50acf25c29b41e4e.zip
cpython-d17ca23828287eb79f28de7c50acf25c29b41e4e.tar.gz
cpython-d17ca23828287eb79f28de7c50acf25c29b41e4e.tar.bz2
#17471 - merge from 3.2
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_urllib2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index ccd5419..3377cff 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -64,6 +64,9 @@ class TrivialTests(unittest.TestCase):
for string, list in tests:
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():
"""