[Python-checkins] cpython (merge 3.2 -> default): merge from 3.2 testFnNames is assigned twice.
senthil.kumaran
python-checkins at python.org
Thu Nov 24 19:09:39 CET 2011
http://hg.python.org/cpython/rev/89819a6393a5
changeset: 73731:89819a6393a5
parent: 73729:1b83fd683e28
parent: 73730:f29d256be73d
user: Senthil Kumaran <senthil at uthcode.com>
date: Fri Nov 25 02:09:24 2011 +0800
summary:
merge from 3.2 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