]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
replace threw with raised (#16714)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 19 Dec 2012 20:49:25 +0000 (22:49 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 19 Dec 2012 20:49:25 +0000 (22:49 +0200)
Lib/test/test_urllib2.py
Lib/test/test_winreg.py

index 3ace66e9a6ad4e218e1f772f5497ccbebf2e3c53..d8c302b712985a12ed2b0b83c2a5a61ec7b7b9af 100644 (file)
@@ -1252,7 +1252,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.
index 918b312871e0944bd2bb0b7e4f930678603fcce4..c7b50ddcab716ea74496ffc56dfd748617e87628 100644 (file)
@@ -277,7 +277,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: