default to 'python' when not running test suite

This commit is contained in:
Josh Junon 2017-03-23 22:20:46 -07:00
parent 8e1040c20a
commit be3b5b38f4
3 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
[ -z "${BETEXC_PYTHON}" ] && export BETEXC_PYTHON=python
/usr/bin/expect -f - <<EOF
spawn ${BETEXC_PYTHON} -m better_exceptions -q
expect ">>> "

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
[ -z "${BETEXC_PYTHON}" ] && export BETEXC_PYTHON=python
/usr/bin/expect -f - <<EOF
spawn ${BETEXC_PYTHON} -m test_util.quiet_console
expect ">>> "

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e
[ -z "${BETEXC_PYTHON}" ] && export BETEXC_PYTHON=python
TEST_STR='import better_exceptions; a = 5; assert a > 10'
"${BETEXC_PYTHON}" -c "${TEST_STR}"