Use test-images repository

This commit is contained in:
Andrew Murray 2023-02-11 18:22:28 +11:00
parent 4fed5a6a8d
commit f3368eac3a

View File

@ -147,9 +147,10 @@ function run_tests {
if [ -n "$IS_MACOS" ]; then if [ -n "$IS_MACOS" ]; then
brew install fribidi brew install fribidi
elif [ -n "$IS_ALPINE" ]; then elif [ -n "$IS_ALPINE" ]; then
apk add fribidi apk add curl fribidi
else else
apt-get install libfribidi0 apt-get update
apt-get install -y curl libfribidi0 unzip
fi fi
if [[ $(uname -m) == "i686" ]]; then if [[ $(uname -m) == "i686" ]]; then
if [[ "$MB_PYTHON_VERSION" != 3.11 ]]; then if [[ "$MB_PYTHON_VERSION" != 3.11 ]]; then
@ -159,7 +160,9 @@ function run_tests {
python3 -m pip install numpy python3 -m pip install numpy
fi fi
mv ../pillow-depends-main/test_images/* ../Pillow/Tests/images curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
untar pillow-test-images.zip
mv test-images-main/* ../Pillow/Tests/images
# Runs tests on installed distribution from an empty directory # Runs tests on installed distribution from an empty directory
(cd ../Pillow && run_tests_in_repo) (cd ../Pillow && run_tests_in_repo)