#!/usr/bin/env bash [ -z "${BETEXC_PYTHON}" ] && export BETEXC_PYTHON=python /usr/bin/expect -f - <>> " send "import better_exceptions\r" expect ">>> " send "def foo(a):\r" expect "... " send " assert a > 10\r" expect "... " send "\r" expect ">>> " send "foo(1)\r" expect ">>> " send "exit()\r" expect "exit" EOF