diff options
| author | Gregory P. Smith <greg@krypto.org> | 2013-03-19 22:05:52 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2013-03-19 22:05:52 (GMT) |
| commit | cca8507758d69f8109ef25cd610218cfb4a3326b (patch) | |
| tree | c84a1a4eba43beda4a9b29726bf1d33bc8004bf0 /Lib/test/test_urllib2.py | |
| parent | 0408bf9cfb0dac07bf378f10af771fab41ba0d52 (diff) | |
| parent | d17ca23828287eb79f28de7c50acf25c29b41e4e (diff) | |
| download | cpython-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.py | 3 |
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(): """ |
