diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-01 19:00:50 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-01 19:00:50 (GMT) |
commit | 28bb572ab4e72abfd918343f1d6114630daa4564 (patch) | |
tree | 4fd1bbdbf94f7728ab873eac8af237079b4e7945 /Lib | |
parent | b1295da59e90f85c71cd5591eff38376017f5e43 (diff) | |
download | cpython-28bb572ab4e72abfd918343f1d6114630daa4564.zip cpython-28bb572ab4e72abfd918343f1d6114630daa4564.tar.gz cpython-28bb572ab4e72abfd918343f1d6114630daa4564.tar.bz2 |
Use attributes appropriately
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_hmac.py | 2 | ||||
-rw-r--r-- | Lib/test/test_httplib.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_hmac.py b/Lib/test/test_hmac.py index 626b937..b7b3c07 100644 --- a/Lib/test/test_hmac.py +++ b/Lib/test/test_hmac.py @@ -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): diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 7860dd3..218ae9c 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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 |