Run tests with pytest

This commit is contained in:
wiredfool 2017-12-27 14:43:53 +00:00
parent 000abe88d6
commit d7580ad556
2 changed files with 2 additions and 8 deletions

2
Pillow

@ -1 +1 @@
Subproject commit 13d84993717cffd64a2e1d7e3e6edb185973d559
Subproject commit c96c72bb4c3cb2e1b8b58455f10d3c19f710b055

View File

@ -43,11 +43,7 @@ function pre_build {
function run_tests_in_repo {
# Run Pillow tests from within source repo
if [ -f test-installed.py ]; then
python test-installed.py -s -v Tests/test_*.py
else
python Tests/run.py --installed
fi
pytest
}
EXP_CODECS="jpg jpg_2000 libtiff zlib"
@ -55,8 +51,6 @@ EXP_MODULES="freetype2 littlecms2 pil tkinter webp"
function run_tests {
# Runs tests on installed distribution from an empty directory
export NOSE_PROCESS_TIMEOUT=600
export NOSE_PROCESSES=0
(cd ../Pillow && run_tests_in_repo)
# Show supported codecs and modules
local codecs=$(python -c 'from PIL.features import *; print(" ".join(sorted(get_supported_codecs())))')