Mercurial > hg
comparison tests/test-module-imports.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 | cda9d2b6beab |
children | f388ceae2250 |
comparison
equal
deleted
inserted
replaced
22946:77c121da6143 | 22947:c63a09b6b337 |
---|---|
1 This code uses the ast module, which was new in 2.6, so we'll skip | 1 This code uses the ast module, which was new in 2.6, so we'll skip |
2 this test on anything earlier. | 2 this test on anything earlier. |
3 $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80 | 3 $ $PYTHON -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80 |
4 | 4 |
5 $ import_checker="$TESTDIR"/../contrib/import-checker.py | 5 $ import_checker="$TESTDIR"/../contrib/import-checker.py |
6 Run the doctests from the import checker, and make sure | 6 Run the doctests from the import checker, and make sure |
7 it's working correctly. | 7 it's working correctly. |
8 $ TERM=dumb | 8 $ TERM=dumb |