tests: handles bytes/str mismatch in test-commit-interface-curses.t
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 26 Jan 2019 15:52:37 -0800
changeset 41416 1d99c9a5ccb0
parent 41415 873a28d7e962
child 41417 5c73441a47e5
tests: handles bytes/str mismatch in test-commit-interface-curses.t This fixes various test failures on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5727
tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t	Sat Jan 26 14:16:34 2019 -0800
+++ b/tests/test-commit-interactive-curses.t	Sat Jan 26 15:52:37 2019 -0800
@@ -333,9 +333,9 @@
   $ cp $HGRCPATH.pretest $HGRCPATH
   $ chunkselectorinterface() {
   > "$PYTHON" <<EOF
-  > from mercurial import hg, ui;\
-  > repo = hg.repository(ui.ui.load(), ".");\
-  > print(repo.ui.interface("chunkselector"))
+  > from mercurial import hg, pycompat, ui;\
+  > repo = hg.repository(ui.ui.load(), b".");\
+  > print(pycompat.sysstr(repo.ui.interface(b"chunkselector")))
   > EOF
   > }
   $ chunkselectorinterface