guys I got a warning when I run a code I got this warning two times:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
located at if result2=b and c == 'Pass':
thing is going wired because I use if result2=b and c == 'Pass':
three time, only last two have warning. I cannot found some solution on Internet,but they are not work for my code. Here is my code, please help me with that. Thx in advanced!
def XXX1():
XXXXXX
if result2==b and c == 'Failed': ----------no warning
XXXXXX
def XXX2():
XXXXXX
if result2==b and c == 'Failed': ----------warning
XXXXXX
def XXX3():
XXXXXX
if result2==b and c == 'Pass': ----------warning
XXXXXX
some parameters may help:
with open('1.csv','rb') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
if row['Case Id']== 'getpropertyvalue_without_propertyname' :
a=row['Result Link']
c=row['Status']
url = a
html = requests.get(url,verify=False).text
soup = BeautifulSoup(html,'html.parser')
result = soup.find("p", {"class":"ERRORLevel"})
result2=result.text