[Python-checkins] cpython (3.2): testFnNames is assigned twice.
senthil.kumaran
python-checkins at python.org
Thu Nov 24 19:09:38 CET 2011
http://hg.python.org/cpython/rev/f29d256be73d
changeset: 73730:f29d256be73d
branch: 3.2
parent: 73726:71cb7ca03bc5
user: Senthil Kumaran <senthil at uthcode.com>
date: Fri Nov 25 02:08:39 2011 +0800
summary:
testFnNames is assigned twice.
files:
Lib/unittest/loader.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py
--- a/Lib/unittest/loader.py
+++ b/Lib/unittest/loader.py
@@ -139,8 +139,7 @@
prefix=self.testMethodPrefix):
return attrname.startswith(prefix) and \
callable(getattr(testCaseClass, attrname))
- testFnNames = testFnNames = list(filter(isTestMethod,
- dir(testCaseClass)))
+ testFnNames = list(filter(isTestMethod, dir(testCaseClass)))
if self.sortTestMethodsUsing:
testFnNames.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing))
return testFnNames
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list