]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
testFnNames is assigned twice.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 24 Nov 2011 18:08:39 +0000 (02:08 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 24 Nov 2011 18:08:39 +0000 (02:08 +0800)
Lib/unittest/loader.py

index cb92fd29baf0f8b714eff631983e4bef67ff43ff..ab364002e20f4a9c4ce228145260d1c58d22ab8f 100644 (file)
@@ -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