title: How can I fix this warning:UnicodeWarning: Unicode equal comparison failed
body: <p>guys I got a warning when I run a code I got this warning two times:</p>
  
  <p><code>UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal</code>located at <code>if result2=b and c == 'Pass':</code></p>
  
  <p>thing is going wired because I use <code>if result2=b and c == 'Pass':</code> 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!</p>
  
  <pre><code>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
  </code></pre>
  
  <p>some parameters may help:</p>
  
  <pre><code>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
  </code></pre>