diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-03-19 20:44:42 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-03-19 20:44:42 (GMT) |
commit | 0085ce8920c96295bfdacc32bd1258b97c8a0747 (patch) | |
tree | b464843cd67834db4aaf5f2bdaf7b67cb8ceea75 | |
parent | af3ba4873a90b2e7e31ed01c12a40141410e9f6a (diff) | |
parent | d17ca23828287eb79f28de7c50acf25c29b41e4e (diff) | |
download | cpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.zip cpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.tar.gz cpython-0085ce8920c96295bfdacc32bd1258b97c8a0747.tar.bz2 |
#17471 - merge from 3.3
-rw-r--r-- | Lib/test/test_urllib2.py | 3 |
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(): """ |