Skip to content

Commit

Permalink
autodetect nosetests2 or nosetests in run-tests
Browse files Browse the repository at this point in the history
'nosetests2' will be used if available, 'nosetests' if not.
On systems like arch linux 'nosetests' defaults to the python3 version
causing tests to fail. Thus nosetests2 has preference.

fixes #9
  • Loading branch information
skuschel committed Dec 15, 2014
1 parent 6c50b62 commit 0a7935b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ exitonfailure () {
}

# run actual tests
nosetests
if command -v nosetests2; then
nosetests2
else
nosetests
fi
exitonfailure $?

pep8 postpic --statistics --count --show-source --ignore=W391,E123,E226,E24 --max-line-length=99
Expand Down

0 comments on commit 0a7935b

Please sign in to comment.