forked from python-pillow/docker-images
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test test_save_p_transparent_black on big endian with Pillow 5.1.0
- Loading branch information
Showing
4 changed files
with
15 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from PIL import Image | ||
im = Image.new("RGBA", (10, 10), (0, 0, 0, 0)) | ||
assert im.getcolors() == [(100, (0, 0, 0, 0))] | ||
|
||
im = im.convert("P") | ||
test_file = "/tmp/temp.png" | ||
im.save(test_file) | ||
|
||
# check if saved image contains same transparency | ||
with Image.open(test_file) as im: | ||
assert len(im.info["transparency"]) == 256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/bash | ||
source /vpy3/bin/activate | ||
cd /Pillow | ||
make clean | ||
make install-coverage | ||
/usr/bin/xvfb-run -a pytest -vx --cov PIL --cov-report term Tests | ||
python3 -m pip install Pillow==5.1.0 | ||
python3 -m pip show Pillow | ||
python3 depends/script.py |