tests: fix a spurious failure when $PYTHON is in the environment
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 19 Nov 2012 21:56:22 +0000 (22:56 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 19 Nov 2012 22:10:51 +0000 (23:10 +0100)
* t/python11.sh: This test doesn't interact well with user-overrides of
$PYTHON; and, given its particular nature, neither should it be expected
to honour that override.  Just unset that $PYTHON variable and live
happy.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/python11.sh

index e86d30e..a22826c 100755 (executable)
@@ -19,6 +19,9 @@
 # Python is not required for this test.
 . ./defs || exit 1
 
+# We don't want to allow user overrides in this test.
+PYTHON=; unset PYTHON
+
 cat >>configure.ac <<'EOF'
 m4_define([_AM_PYTHON_INTERPRETER_LIST], [IShouldNotExist1 IShouldNotExist2])
 AM_PATH_PYTHON