changeset 41416:1d99c9a5ccb0

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 26 Jan 2019 15:52:37 -0800
parents 873a28d7e962
children 5c73441a47e5
files tests/test-commit-interactive-curses.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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