summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python/module
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/third_party/Python/module')
-rw-r--r--lldb/third_party/Python/module/unittest2/unittest2/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/third_party/Python/module/unittest2/unittest2/loader.py b/lldb/third_party/Python/module/unittest2/unittest2/loader.py
index 6fbafb7a17e..92674e34592 100644
--- a/lldb/third_party/Python/module/unittest2/unittest2/loader.py
+++ b/lldb/third_party/Python/module/unittest2/unittest2/loader.py
@@ -155,7 +155,7 @@ class TestLoader(unittest.TestLoader):
prefix=self.testMethodPrefix):
return attrname.startswith(prefix) and \
hasattr(getattr(testCaseClass, attrname), '__call__')
- testFnNames = filter(isTestMethod, dir(testCaseClass))
+ testFnNames = list(filter(isTestMethod, dir(testCaseClass)))
if self.sortTestMethodsUsing:
testFnNames.sort(key=_CmpToKey(self.sortTestMethodsUsing))
return testFnNames
OpenPOWER on IntegriCloud