mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 19:06:18 +03:00
commit
da43be83bc
|
@ -72,7 +72,7 @@ function pre_build {
|
|||
|
||||
function run_tests_in_repo {
|
||||
# Run Pillow tests from within source repo
|
||||
python selftest.py
|
||||
python3 selftest.py
|
||||
pytest
|
||||
}
|
||||
|
||||
|
@ -93,17 +93,17 @@ function run_tests {
|
|||
(cd ../Pillow && run_tests_in_repo)
|
||||
# Test against expected codecs, modules and features
|
||||
local ret=0
|
||||
local codecs=$(python -c 'from PIL.features import *; print(" ".join(sorted(get_supported_codecs())))')
|
||||
local codecs=$(python3 -c 'from PIL.features import *; print(" ".join(sorted(get_supported_codecs())))')
|
||||
if [ "$codecs" != "$EXP_CODECS" ]; then
|
||||
echo "Codecs should be: '$EXP_CODECS'; but are '$codecs'"
|
||||
ret=1
|
||||
fi
|
||||
local modules=$(python -c 'from PIL.features import *; print(" ".join(sorted(get_supported_modules())))')
|
||||
local modules=$(python3 -c 'from PIL.features import *; print(" ".join(sorted(get_supported_modules())))')
|
||||
if [ "$modules" != "$EXP_MODULES" ]; then
|
||||
echo "Modules should be: '$EXP_MODULES'; but are '$modules'"
|
||||
ret=1
|
||||
fi
|
||||
local features=$(python -c 'from PIL.features import *; print(" ".join(sorted(get_supported_features())))')
|
||||
local features=$(python3 -c 'from PIL.features import *; print(" ".join(sorted(get_supported_features())))')
|
||||
if [ "$features" != "$EXP_FEATURES" ]; then
|
||||
echo "Features should be: '$EXP_FEATURES'; but are '$features'"
|
||||
ret=1
|
||||
|
|
Loading…
Reference in New Issue
Block a user