# HG changeset patch # User Augie Fackler # Date 2015-04-13 19:57:10 # Node ID 8c7e938c81467da37833ed20dae2093409eba926 # Parent 40b4308d5653a71cc12da116d5ae16c750e57459 run-tests: string-escape no longer exists in python 3, use unicode_escape diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1120,9 +1120,11 @@ class TTest(Test): return True if el: if el.endswith(b" (esc)\n"): - el = el[:-7].decode('string-escape') + '\n' if sys.version_info[0] == 3: - el.encode('utf-8') + el = el[:-7].decode('unicode_escape') + '\n' + el = el.encode('utf-8') + else: + el = el[:-7].decode('string-escape') + '\n' if el == l or os.name == 'nt' and el[:-1] + b'\r\n' == l: return True if el.endswith(b" (re)\n"):