mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Remove unnecessary setup_module() from test_file_tar.py
The test_sanity() already checks the decorder exists and the other tests can run without zlib/jpeg installed.
This commit is contained in:
parent
967f46d1d8
commit
f72e64b90b
|
@ -9,11 +9,6 @@ codecs = dir(Image.core)
|
||||||
TEST_TAR_FILE = "Tests/images/hopper.tar"
|
TEST_TAR_FILE = "Tests/images/hopper.tar"
|
||||||
|
|
||||||
|
|
||||||
def setup_module():
|
|
||||||
if "zip_decoder" not in codecs and "jpeg_decoder" not in codecs:
|
|
||||||
pytest.skip("neither jpeg nor zip support available")
|
|
||||||
|
|
||||||
|
|
||||||
def test_sanity():
|
def test_sanity():
|
||||||
for codec, test_path, format in [
|
for codec, test_path, format in [
|
||||||
["zip_decoder", "hopper.png", "PNG"],
|
["zip_decoder", "hopper.png", "PNG"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user