From bacf1bf35502931ce5de8c2e026ab6be65f943ef Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 19 Dec 2012 22:49:01 +0200 Subject: [PATCH] replace threw with raised (#16714) --- Lib/test/test_urllib2.py | 2 +- Lib/test/test_winreg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index fc76a6ccb92..12263b381dc 100644 --- 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* + # HTTPDigestAuthHandler raised an exception if it couldn't handle a 40* # response (http://python.org/sf/1479302), where it should instead # return None to allow another handler (especially # HTTPBasicAuthHandler) to handle the response. diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index c6268e1473d..a741b65e07f 100644 --- 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 + # characters, EnumKey raised "WindowsError: More data is # available" name = 'x'*256 try: