summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-11-24 18:08:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-11-24 18:08:39 (GMT)
commitf27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d (patch)
tree939dd1e5022c101cd9d8c1b245be8629a5ad7c32 /Lib
parent631a7e23c5afec8a53a92296d08b0865322540ca (diff)
downloadcpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.zip
cpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.tar.gz
cpython-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.tar.bz2
testFnNames is assigned twice.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest/loader.py3
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