[Python3] Fix TestObjCMethods.py to work with py2 and 3.

llvm-svn: 354286
This commit is contained in:
Davide Italiano 2019-02-18 21:53:02 +00:00
parent b04fe71592
commit 9144aa38ed
1 changed files with 1 additions and 1 deletions

View File

@ -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:")