##// END OF EJS Templates
run-tests: string-escape no longer exists in python 3, use unicode_escape
Augie Fackler -
r25047:8c7e938c default
parent child Browse files
Show More
@@ -1120,9 +1120,11 b' class TTest(Test):'
1120 1120 return True
1121 1121 if el:
1122 1122 if el.endswith(b" (esc)\n"):
1123 el = el[:-7].decode('string-escape') + '\n'
1124 1123 if sys.version_info[0] == 3:
1125 el.encode('utf-8')
1124 el = el[:-7].decode('unicode_escape') + '\n'
1125 el = el.encode('utf-8')
1126 else:
1127 el = el[:-7].decode('string-escape') + '\n'
1126 1128 if el == l or os.name == 'nt' and el[:-1] + b'\r\n' == l:
1127 1129 return True
1128 1130 if el.endswith(b" (re)\n"):
General Comments 0
You need to be logged in to leave comments. Login now