diff tests/test-run-tests.py @ 33736:2e43c5cd57a7

tests: fix up test-run-tests failures on Python 3.6 Some of the recent work on run-tests.py didn't work on Python 3. This fixes the regressions. Differential Revision: https://phab.mercurial-scm.org/D270
author Augie Fackler <augie@google.com>
date Tue, 08 Aug 2017 15:07:05 -0400
parents eeed23508383
children 14fd435763ee
line wrap: on
line diff
--- a/tests/test-run-tests.py	Wed Aug 02 11:32:25 2017 +0200
+++ b/tests/test-run-tests.py	Tue Aug 08 15:07:05 2017 -0400
@@ -39,7 +39,7 @@
             and output.endswith(b'\n')), 'missing newline'
     assert not re.search(br'[^ \w\\/\r\n()*?]', expected + output), \
            b'single backslash or unknown char'
-    test = run_tests.TTest('test-run-test.t', '.', '.')
+    test = run_tests.TTest(b'test-run-test.t', b'.', b'.')
     match = test.linematch(expected, output)
     if isinstance(match, str):
         return 'special: ' + match