mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
merge from 3.2 testFnNames is assigned twice.
This commit is contained in:
commit
5d036e1ccf
@ -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
Block a user