mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use attributes appropriately
This commit is contained in:
parent
b1295da59e
commit
28bb572ab4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue