diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-03-19 23:52:06 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-03-19 23:52:06 (GMT) |
commit | 94f2788a859df7e79f8800f2b601e00acc2f8562 (patch) | |
tree | 173601aa15d33dba84def9a53603433f37be5c08 /Lib/test/test_urllib2.py | |
parent | f027a204b0eda96ac6cc2a6ebf9faaab209a981a (diff) | |
parent | f47e77f3437948992c0c9e0cdca481d59ebc14fa (diff) | |
download | cpython-94f2788a859df7e79f8800f2b601e00acc2f8562.zip cpython-94f2788a859df7e79f8800f2b601e00acc2f8562.tar.gz cpython-94f2788a859df7e79f8800f2b601e00acc2f8562.tar.bz2 |
#17471: merge from 3.3
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 46f5da7..3e19ecf 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -1461,6 +1461,8 @@ class MiscTests(unittest.TestCase): >>> assert hasattr(err, 'headers') >>> err.headers 'Content-Length: 42' + >>> expected_errmsg = 'HTTP Error %s: %s' % (err.code, err.msg) + >>> assert str(err) == expected_errmsg """ class RequestTests(unittest.TestCase): |