cpython: b227f8f7242d (original) (raw)
Mercurial > cpython
changeset 80948:b227f8f7242d 2.7
replace threw with raised (#16714) [#16714]
Andrew Svetlov andrew.svetlov@gmail.com | |
---|---|
date | Wed, 19 Dec 2012 22:49:01 +0200 |
parents | 0a5c5399f638 |
children | b6ff6ac1f049 |
files | Lib/test/test_urllib2.py Lib/test/test_winreg.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_urllib2.py 2 Lib/test/test_winreg.py 2 |
line wrap: on
line diff
--- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -1148,7 +1148,7 @@ class HandlerTests(unittest.TestCase): ) def test_basic_and_digest_auth_handlers(self):
# HTTPDigestAuthHandler threw an exception if it couldn't handle a 40*[](#l1.7)
# HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*[](#l1.8) # response (http://python.org/sf/1479302), where it should instead[](#l1.9) # return None to allow another handler (especially[](#l1.10) # HTTPBasicAuthHandler) to handle the response.[](#l1.11)
--- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -267,7 +267,7 @@ class LocalWinregTests(BaseWinregTests): def test_long_key(self): # Issue2810, in 2.6 and 3.1 when the key name was exactly 256
# characters, EnumKey threw "WindowsError: More data is[](#l2.7)
# characters, EnumKey raised "WindowsError: More data is[](#l2.8) # available"[](#l2.9) name = 'x'*256[](#l2.10) try:[](#l2.11)