# HG changeset patch # User Gregory Szorc # Date 2019-01-26 23:52:37 # Node ID 1d99c9a5ccb00e8c4b7edb7d3549f6df73e2ff68 # Parent 873a28d7e962e933f3f67dd263369c35450035f6 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 diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t --- a/tests/test-commit-interactive-curses.t +++ b/tests/test-commit-interactive-curses.t @@ -333,9 +333,9 @@ The default interface is text $ cp $HGRCPATH.pretest $HGRCPATH $ chunkselectorinterface() { > "$PYTHON" < 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