mirror of https://github.com/python/cpython
testFnNames is assigned twice.
This commit is contained in:
parent
631a7e23c5
commit
f27be5c60b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue