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
--- 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