mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
use setup_module() to open images so they aren't opened if skipped
This commit is contained in:
parent
3f49b0cfd2
commit
9c6b30560e
|
@ -16,13 +16,14 @@ pytestmark = pytest.mark.skipif(
|
||||||
not ImageQt.qt_is_installed, reason="Qt bindings are not installed"
|
not ImageQt.qt_is_installed, reason="Qt bindings are not installed"
|
||||||
)
|
)
|
||||||
|
|
||||||
ims = [
|
ims = []
|
||||||
hopper(),
|
|
||||||
Image.open("Tests/images/transparent.png"),
|
|
||||||
Image.open("Tests/images/7x13.png"),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
|
def setup_module() -> None:
|
||||||
|
ims.append(hopper())
|
||||||
|
ims.append(Image.open("Tests/images/transparent.png"))
|
||||||
|
ims.append(Image.open("Tests/images/7x13.png"))
|
||||||
|
|
||||||
def teardown_module() -> None:
|
def teardown_module() -> None:
|
||||||
for im in ims:
|
for im in ims:
|
||||||
im.close()
|
im.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user