From aa14204da237136ef0d7087cd5e2c6db56c7bf3e Mon Sep 17 00:00:00 2001 From: "benjamin.peterson" Date: Sat, 18 Apr 2009 19:26:19 +0000 Subject: [PATCH] fix a few nits in unittest.py #5771 git-svn-id: http://svn.python.org/projects/python/trunk@71721 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/unittest.py | 4 ++-- 1 file 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) -- 2.11.4.GIT