changeset 26612:a38924f7680c

run-tests: add b-prefix on two strings to fix python3 support
author Augie Fackler <augie@google.com>
date Mon, 12 Oct 2015 14:15:04 -0400
parents a5ff66e6d77a
children abb5ec3eb6ce
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Oct 11 20:47:14 2015 -0700
+++ b/tests/run-tests.py	Mon Oct 12 14:15:04 2015 -0400
@@ -1090,7 +1090,7 @@
             # clean up any optional leftovers
             while expected.get(pos, None):
                 el = expected[pos].pop(0)
-                if not el.endswith(" (?)\n"):
+                if not el.endswith(b" (?)\n"):
                     expected[pos].insert(0, el)
                     break
                 postout.append(b'  ' + el)
@@ -1160,7 +1160,7 @@
         if el == l: # perfect match (fast)
             return True
         if el:
-            if el.endswith(" (?)\n"):
+            if el.endswith(b" (?)\n"):
                 retry = "retry"
                 el = el[:-5] + "\n"
             if el.endswith(b" (esc)\n"):