summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-19 22:05:52 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-19 22:05:52 (GMT)
commitcca8507758d69f8109ef25cd610218cfb4a3326b (patch)
treec84a1a4eba43beda4a9b29726bf1d33bc8004bf0 /Lib/test/test_urllib2.py
parent0408bf9cfb0dac07bf378f10af771fab41ba0d52 (diff)
parentd17ca23828287eb79f28de7c50acf25c29b41e4e (diff)
downloadcpython-cca8507758d69f8109ef25cd610218cfb4a3326b.zip
cpython-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.gz
cpython-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.bz2
merge heads in 3.3
Diffstat (limited to 'Lib/test/test_urllib2.py')
-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():
"""