Skip to content

Commit

Permalink
fix scripts/test.sh not testing deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent 4fba3b7 commit 234ae4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e

rootDir=$(dirname $(dirname "$0"))
rootDirAbs=$(realpath $rootDir)

echo "$rootDir/tests"
cd "$rootDir/tests"
Expand All @@ -11,8 +12,8 @@ for F in *_test.py; do
python -m unittest "$F"
done

echo "$rootDir/tests/deprecated/
cd "$rootDir/tests/deprecated/
echo "$rootDirAbs/tests/deprecated/"
cd "$rootDirAbs/tests/deprecated/"
for F in *_test.py; do
echo "$F"
python -W ignore::DeprecationWarning -m unittest "$F"
Expand Down

0 comments on commit 234ae4b

Please sign in to comment.