forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test cibuildwheel wheels in Docker on Windows
- Loading branch information
Showing
5 changed files
with
63 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import sys | ||
|
||
import pytest | ||
|
||
from PIL import features | ||
|
||
|
||
@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows") | ||
def test_windows_wheel_modules(): | ||
expected_modules = ["pil", "freetype2", "littlecms2", "webp"] | ||
|
||
assert features.get_supported_modules() == expected_modules | ||
|
||
|
||
@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows") | ||
def test_windows_wheel_codecs(): | ||
expected_codecs = ["jpg", "jpg_2000", "zlib", "libtiff"] | ||
|
||
assert features.get_supported_codecs() == expected_codecs | ||
|
||
|
||
@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows") | ||
def test_windows_wheel_features(): | ||
expected_features = [ | ||
"webp_anim", | ||
"webp_mux", | ||
"transp_webp", | ||
"raqm", | ||
"fribidi", | ||
"harfbuzz", | ||
"libjpeg_turbo", | ||
] | ||
|
||
assert features.get_supported_features() == expected_features |
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