run-tests: add b-prefix on two strings to fix python3 support
authorAugie Fackler <augie@google.com>
Mon, 12 Oct 2015 14:15:04 -0400
changeset 26612 a38924f7680c
parent 26611 a5ff66e6d77a
child 26613 abb5ec3eb6ce
run-tests: add b-prefix on two strings to fix python3 support
tests/run-tests.py
--- 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"):