tests/run-tests.py
changeset 45019 4a503c1b664a
parent 44944 617cd3b1e9cd
parent 45013 bd0f122f3f51
child 45046 dd3050227a84
equal deleted inserted replaced
45018:f2dc337117b9 45019:4a503c1b664a
  2067                     return "retry", False
  2067                     return "retry", False
  2068 
  2068 
  2069         if el.endswith(b" (esc)\n"):
  2069         if el.endswith(b" (esc)\n"):
  2070             if PYTHON3:
  2070             if PYTHON3:
  2071                 el = el[:-7].decode('unicode_escape') + '\n'
  2071                 el = el[:-7].decode('unicode_escape') + '\n'
  2072                 el = el.encode('utf-8')
  2072                 el = el.encode('latin-1')
  2073             else:
  2073             else:
  2074                 el = el[:-7].decode('string-escape') + '\n'
  2074                 el = el[:-7].decode('string-escape') + '\n'
  2075         if el == l or os.name == 'nt' and el[:-1] + b'\r\n' == l:
  2075         if el == l or os.name == 'nt' and el[:-1] + b'\r\n' == l:
  2076             return True, True
  2076             return True, True
  2077         if el.endswith(b" (re)\n"):
  2077         if el.endswith(b" (re)\n"):