D5727: tests: handles bytes/str mismatch in test-commit-interface-curses.t
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Jan 27 01:00:57 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This fixes various test failures on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5727
AFFECTED FILES
tests/test-commit-interactive-curses.t
CHANGE DETAILS
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 @@
$ 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
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list