Commit 28bb572a authored by Neal Norwitz's avatar Neal Norwitz

Use attributes appropriately

parent b1295da5
......@@ -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):
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment