Mercurial > public > mercurial-scm > hg-stable
diff tests/test-win32text.t @ 22947:c63a09b6b337
tests: use $PYTHON instead of hardcoding python
This makes running the testsuite with pypy possible.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 15 Oct 2014 15:35:59 -0400 |
parents | 7985a9e2ddce |
children | 4b0fc75f9403 |
line wrap: on
line diff
--- a/tests/test-win32text.t Wed Oct 15 15:13:43 2014 -0400 +++ b/tests/test-win32text.t Wed Oct 15 15:35:59 2014 -0400 @@ -118,7 +118,7 @@ $ hg rem f $ hg ci -m 4 - $ python -c 'file("bin", "wb").write("hello\x00\x0D\x0A")' + $ $PYTHON -c 'file("bin", "wb").write("hello\x00\x0D\x0A")' $ hg add bin $ hg ci -m 5 $ hg log -v @@ -342,7 +342,7 @@ $ rm .hg/hgrc $ (echo some; echo text) > f3 - $ python -c 'file("f4.bat", "wb").write("rem empty\x0D\x0A")' + $ $PYTHON -c 'file("f4.bat", "wb").write("rem empty\x0D\x0A")' $ hg add f3 f4.bat $ hg ci -m 6 $ cat bin @@ -395,7 +395,7 @@ $ cat f4.bat rem empty\r (esc) - $ python -c 'file("f5.sh", "wb").write("# empty\x0D\x0A")' + $ $PYTHON -c 'file("f5.sh", "wb").write("# empty\x0D\x0A")' $ hg add f5.sh $ hg ci -m 7 $ cat f5.sh