summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-19 16:52:06 -0700
committerSenthil Kumaran <senthil@uthcode.com>2013-03-19 16:52:06 -0700
commit94f2788a859df7e79f8800f2b601e00acc2f8562 (patch)
tree173601aa15d33dba84def9a53603433f37be5c08 /Lib/test/test_urllib2.py
parentf027a204b0eda96ac6cc2a6ebf9faaab209a981a (diff)
parentf47e77f3437948992c0c9e0cdca481d59ebc14fa (diff)
downloadcpython-git-94f2788a859df7e79f8800f2b601e00acc2f8562.tar.gz
#17471: merge from 3.3
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 46f5da73ef..3e19ecff09 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):