mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +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()
|
dig = h.hexdigest()
|
||||||
h2 = h.copy()
|
h2 = h.copy()
|
||||||
except:
|
except:
|
||||||
fail("Exception raised during normal usage of HMAC class.")
|
self.fail("Exception raised during normal usage of HMAC class.")
|
||||||
|
|
||||||
class CopyTestCase(unittest.TestCase):
|
class CopyTestCase(unittest.TestCase):
|
||||||
def test_attributes(self):
|
def test_attributes(self):
|
||||||
|
|
|
@ -8,7 +8,7 @@ class FakeSocket:
|
||||||
|
|
||||||
def makefile(self, mode, bufsize=None):
|
def makefile(self, mode, bufsize=None):
|
||||||
if mode != 'r' and mode != 'rb':
|
if mode != 'r' and mode != 'rb':
|
||||||
raise UnimplementedFileMode()
|
raise httplib.UnimplementedFileMode()
|
||||||
return StringIO.StringIO(self.text)
|
return StringIO.StringIO(self.text)
|
||||||
|
|
||||||
# Test HTTP status lines
|
# Test HTTP status lines
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue