diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-18 19:26:19 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-18 19:26:19 +0000 |
commit | baba195eb2c3ea7fabca4b6eaa519c513e052aab (patch) | |
tree | 214e5ad59f7b4d50d51f536daf07a727b9926992 /Lib/unittest.py | |
parent | d672001b03ba75ae88737f2502c9103b157b43eb (diff) | |
download | cpython-git-baba195eb2c3ea7fabca4b6eaa519c513e052aab.tar.gz |
fix a few nits in unittest.py #5771
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index f99f958d91..71d94cf350 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -265,7 +265,7 @@ class _AssertRaisesContext(object): def __enter__(self): pass - def __exit__(self, exc_type, exc_value, traceback): + def __exit__(self, exc_type, exc_value, tb): if exc_type is None: try: exc_name = self.expected.__name__ @@ -1141,7 +1141,7 @@ class FunctionTestCase(TestCase): self._testFunc, self._description)) def __str__(self): - return "%s (%s)" % (_strclass(self.__class__), self.__testFunc.__name__) + return "%s (%s)" % (_strclass(self.__class__), self._testFunc.__name__) def __repr__(self): return "<%s testFunc=%s>" % (_strclass(self.__class__), self._testFunc) |