summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2019-02-21 20:26:47 +0100
committerGitHub <noreply@github.com>2019-02-21 20:26:47 +0100
commitc088581f5ed882554d1e27074411b2c874955010 (patch)
tree0a354ecf213d5a75aac23c890ec92b148896553e /bin
parentd9eb1a980798ff54ac9cd81ff1821f78aa57156b (diff)
parent69c11fb0aa1750225d1f9549474554bb1d3eb932 (diff)
Merge pull request #46 from jpyams/python3
Add Python 3 support
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/test b/bin/test
index 2d35baf..025248e 100755
--- a/bin/test
+++ b/bin/test
@@ -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