Skip to content

Commit a0a5b7a

Browse files
committed
Added import test
1 parent fcc42e0 commit a0a5b7a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test_script:
4545
- cd c:\pillow
4646
- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov'
4747
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
48+
- '%PYTHON%\%EXECUTABLE% -c "from PIL import Image"'
4849
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
4950
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
5051

.ci/test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
set -e
44

5-
python -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests
5+
python3 -c "from PIL import Image"
6+
7+
python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests

.github/workflows/test-windows.yml

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ jobs:
273273
- name: Test Pillow
274274
run: |
275275
python3 selftest.py --installed
276+
python3 -c "from PIL import Image"
276277
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
277278
278279
- name: Upload coverage

0 commit comments

Comments
 (0)