summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-19 20:44:42 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-19 20:44:42 (GMT)
commit0085ce8920c96295bfdacc32bd1258b97c8a0747 (patch)
treeb464843cd67834db4aaf5f2bdaf7b67cb8ceea75 /Lib
parentaf3ba4873a90b2e7e31ed01c12a40141410e9f6a (diff)
parentd17ca23828287eb79f28de7c50acf25c29b41e4e (diff)
downloadcpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.zip
cpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.tar.gz
cpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.tar.bz2
#17471 - merge from 3.3
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 b56877a..46f5da7 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():
"""