]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use attributes appropriately
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 1 Apr 2002 19:00:50 +0000 (19:00 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 1 Apr 2002 19:00:50 +0000 (19:00 +0000)
Lib/test/test_hmac.py
Lib/test/test_httplib.py

index 626b93761db431dcb2cf7ca51343cc345c99bd61..b7b3c079244b55b10397eadc40ee38c2b9342b1d 100644 (file)
@@ -63,7 +63,7 @@ class SanityTestCase(unittest.TestCase):
             dig = h.hexdigest()
             h2 = h.copy()
         except:
-            fail("Exception raised during normal usage of HMAC class.")
+            self.fail("Exception raised during normal usage of HMAC class.")
 
 class CopyTestCase(unittest.TestCase):
     def test_attributes(self):
index 7860dd3138cfbf91bfc429ff52df3ad2d4ddc4bb..218ae9c163131b9207d45bd09fe78ee3c7db3ec7 100644 (file)
@@ -8,7 +8,7 @@ class FakeSocket:
 
     def makefile(self, mode, bufsize=None):
         if mode != 'r' and mode != 'rb':
-            raise UnimplementedFileMode()
+            raise httplib.UnimplementedFileMode()
         return StringIO.StringIO(self.text)
 
 # Test HTTP status lines