diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-11-24 18:08:39 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-11-24 18:08:39 (GMT) |
commit | f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d (patch) | |
tree | 939dd1e5022c101cd9d8c1b245be8629a5ad7c32 /Lib/unittest | |
parent | 631a7e23c5afec8a53a92296d08b0865322540ca (diff) | |
download | cpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.zip cpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.tar.gz cpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.tar.bz2 |
testFnNames is assigned twice.
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 |