diff tests/test-convert-mtn.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 7a9cbb315d84
children 4d2b9b304ad0
line wrap: on
line diff
--- a/tests/test-convert-mtn.t	Wed Oct 15 15:13:43 2014 -0400
+++ b/tests/test-convert-mtn.t	Wed Oct 15 15:35:59 2014 -0400
@@ -43,7 +43,7 @@
   $ mkdir dir
   $ echo b > dir/b
   $ echo d > dir/d
-  $ python -c 'file("bin", "wb").write("a\\x00b")'
+  $ $PYTHON -c 'file("bin", "wb").write("a\\x00b")'
   $ echo c > c
   $ mtn add a dir/b dir/d c bin
   mtn: adding 'a' to workspace manifest
@@ -65,7 +65,7 @@
   $ echo b >> dir/b
   $ mtn drop c
   mtn: dropping 'c' from workspace manifest
-  $ python -c 'file("bin", "wb").write("b\\x00c")'
+  $ $PYTHON -c 'file("bin", "wb").write("b\\x00c")'
   $ mtn ci -m update1
   mtn: beginning commit on branch 'com.selenic.test'
   mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff