diff options
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/loader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py index cb92fd2..ab36400 100644 --- a/Lib/unittest/loader.py +++ b/Lib/unittest/loader.py @@ -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 |