[Lldb-commits] [lldb] r354286 - [Python3] Fix TestObjCMethods.py to work with py2 and 3.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 18 13:53:02 PST 2019
Author: davide
Date: Mon Feb 18 13:53:02 2019
New Revision: 354286
URL: http://llvm.org/viewvc/llvm-project?rev=354286&view=rev
Log:
[Python3] Fix TestObjCMethods.py to work with py2 and 3.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py?rev=354286&r1=354285&r2=354286&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/objc/foundation/TestObjCMethods.py Mon Feb 18 13:53:02 2019
@@ -317,7 +317,7 @@ class FoundationTestCase(TestBase):
lines = f.readlines()
num_errors = 0
for line in lines:
- if string.find(line, "$__lldb") != -1:
+ if "$__lldb" in line:
if num_errors == 0:
print(
"error: found spurious name lookups when evaluating an expression:")
More information about the lldb-commits
mailing list