diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-11-24 18:09:24 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-11-24 18:09:24 (GMT) |
commit | 5d036e1ccfae70d6187feda9b617888d32d72487 (patch) | |
tree | 44830211b5e271afba00c8a9eca9c6f024426ff7 /Lib | |
parent | 984890fcbbb2bb9d7168fd78a1383804593c3fd3 (diff) | |
parent | f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d (diff) | |
download | cpython-5d036e1ccfae70d6187feda9b617888d32d72487.zip cpython-5d036e1ccfae70d6187feda9b617888d32d72487.tar.gz cpython-5d036e1ccfae70d6187feda9b617888d32d72487.tar.bz2 |
merge from 3.2 testFnNames is assigned twice.
Diffstat (limited to 'Lib')
-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 |