From 5c27088874c92ba4a47b32cf8999bdf59d27b9cc Mon Sep 17 00:00:00 2001 From: Johannes Buchner Date: Sun, 7 Jun 2020 01:15:05 +0200 Subject: [PATCH] fix tests to also ignore non-existing modules --- runtests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtests.sh b/runtests.sh index dabf22e..57c4515 100755 --- a/runtests.sh +++ b/runtests.sh @@ -40,8 +40,8 @@ echo "checking that pytest misuse causes error" coverage run -a ./pystrict3.py --import-any tests/examples-bad-external/7.py && exit 1 echo "checking that a non-existing module does not cause an error" coverage run -a ./pystrict3.py --import-builtin tests/examples-good-external/7.py || exit 1 -echo "checking that a non-existing module causes error" -coverage run -a ./pystrict3.py --import-any tests/examples-good-external/7.py && exit 1 +echo "checking that a non-existing module does not cause an error" +coverage run -a ./pystrict3.py --import-any tests/examples-good-external/7.py || exit 1 echo "checking numpy inspection" coverage run -a ./pystrict3.py --import-any tests/examples-bad-external/13.py && exit 1