# HG changeset patch # User Augie Fackler # Date 1428955030 14400 # Node ID 8c7e938c81467da37833ed20dae2093409eba926 # Parent 40b4308d5653a71cc12da116d5ae16c750e57459 run-tests: string-escape no longer exists in python 3, use unicode_escape diff -r 40b4308d5653 -r 8c7e938c8146 tests/run-tests.py --- a/tests/run-tests.py Mon Apr 13 15:55:48 2015 -0400 +++ b/tests/run-tests.py Mon Apr 13 15:57:10 2015 -0400 @@ -1120,9 +1120,11 @@ 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"):