Mercurial > public > mercurial-scm > hg-stable
diff tests/test-help.t @ 39723:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | a2880ac67ee0 |
children | 0d703063d0c8 |
line wrap: on
line diff
--- a/tests/test-help.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-help.t Tue Sep 18 23:47:21 2018 -0400 @@ -1772,7 +1772,7 @@ This tests that section lookup by translated string isn't broken by such str.lower(). - $ $PYTHON <<EOF + $ "$PYTHON" <<EOF > def escape(s): > return ''.join('\u%x' % ord(uc) for uc in s.decode('cp932')) > # translation of "record" in ja_JP.cp932 @@ -1806,7 +1806,7 @@ > ambiguous = ./ambiguous.py > EOF - $ $PYTHON <<EOF | sh + $ "$PYTHON" <<EOF | sh > upper = "\x8bL\x98^" > print("hg --encoding cp932 help -e ambiguous.%s" % upper) > EOF @@ -1816,7 +1816,7 @@ Upper name should show only this message - $ $PYTHON <<EOF | sh + $ "$PYTHON" <<EOF | sh > lower = "\x8bl\x98^" > print("hg --encoding cp932 help -e ambiguous.%s" % lower) > EOF @@ -2026,7 +2026,7 @@ Test usage of section marks in help documents $ cd "$TESTDIR"/../doc - $ $PYTHON check-seclevel.py + $ "$PYTHON" check-seclevel.py $ cd $TESTTMP #if serve