Mercurial > hg
comparison tests/test-commit-interactive-curses.t @ 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 | 682f73fa924a |
children | 756326d54761 |
comparison
equal
deleted
inserted
replaced
41415:873a28d7e962 | 41416:1d99c9a5ccb0 |
---|---|
331 | 331 |
332 The default interface is text | 332 The default interface is text |
333 $ cp $HGRCPATH.pretest $HGRCPATH | 333 $ cp $HGRCPATH.pretest $HGRCPATH |
334 $ chunkselectorinterface() { | 334 $ chunkselectorinterface() { |
335 > "$PYTHON" <<EOF | 335 > "$PYTHON" <<EOF |
336 > from mercurial import hg, ui;\ | 336 > from mercurial import hg, pycompat, ui;\ |
337 > repo = hg.repository(ui.ui.load(), ".");\ | 337 > repo = hg.repository(ui.ui.load(), b".");\ |
338 > print(repo.ui.interface("chunkselector")) | 338 > print(pycompat.sysstr(repo.ui.interface(b"chunkselector"))) |
339 > EOF | 339 > EOF |
340 > } | 340 > } |
341 $ chunkselectorinterface | 341 $ chunkselectorinterface |
342 text | 342 text |
343 | 343 |