diff options
Diffstat (limited to 'bin/test')
-rwxr-xr-x | bin/test | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ #!/bin/bash -nosetests --nocapture --with-doctest --doctest-tests $* && \ - pep8 --ignore=E402 screenplain tests +if [[ $(python -V 2>&1) =~ "Python 2" ]] +then + nosetests --nocapture --with-doctest --doctest-tests -I ^test.py $* && \ + pep8 --ignore=E402 screenplain tests +else + python test.py && pep8 --ignore=E402 screenplain tests +fi |