merge from 3.2 testFnNames is assigned twice.

This commit is contained in:
Senthil Kumaran 2011-11-25 02:09:24 +08:00
commit 5d036e1ccf

View File

@ -139,8 +139,7 @@ class TestLoader(object):
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