Kaydet (Commit) f27be5c6 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

testFnNames is assigned twice.

üst 631a7e23
...@@ -139,8 +139,7 @@ class TestLoader(object): ...@@ -139,8 +139,7 @@ class TestLoader(object):
prefix=self.testMethodPrefix): prefix=self.testMethodPrefix):
return attrname.startswith(prefix) and \ return attrname.startswith(prefix) and \
callable(getattr(testCaseClass, attrname)) callable(getattr(testCaseClass, attrname))
testFnNames = testFnNames = list(filter(isTestMethod, testFnNames = list(filter(isTestMethod, dir(testCaseClass)))
dir(testCaseClass)))
if self.sortTestMethodsUsing: if self.sortTestMethodsUsing:
testFnNames.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing)) testFnNames.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing))
return testFnNames return testFnNames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment