testFnNames is assigned twice.

This commit is contained in:
Senthil Kumaran 2011-11-25 02:08:39 +08:00
parent 631a7e23c5
commit f27be5c60b
1 changed files with 1 additions and 2 deletions

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