summaryrefslogtreecommitdiff
path: root/Lib/unittest/loader.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-11-25 02:08:39 +0800
committerSenthil Kumaran <senthil@uthcode.com>2011-11-25 02:08:39 +0800
commitf27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d (patch)
tree939dd1e5022c101cd9d8c1b245be8629a5ad7c32 /Lib/unittest/loader.py
parent631a7e23c5afec8a53a92296d08b0865322540ca (diff)
downloadcpython-git-f27be5c60be83ac98e6c5c8b99b6b63f4bb8f23d.tar.gz
testFnNames is assigned twice.
Diffstat (limited to 'Lib/unittest/loader.py')
-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 cb92fd29ba..ab364002e2 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