Skip to content

Commit 83857f3

Browse files
committed
fix typo
1 parent f51e9b0 commit 83857f3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/metadata_etc_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pillow_heif.register_heif_opener()
1010

1111

12-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
12+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
1313
def test_heif_primary_image():
1414
heif_buf = create_heif((64, 64), n_images=3, primary_index=1)
1515
heif_file = pillow_heif.open_heif(heif_buf)
@@ -34,7 +34,7 @@ def test_heif_primary_image():
3434
assert heif_file_out.primary_index() == 2
3535

3636

37-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
37+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
3838
def test_pillow_primary_image():
3939
heif_buf = create_heif((64, 64), n_images=3, primary_index=1)
4040
heif_file = Image.open(heif_buf)
@@ -59,7 +59,7 @@ def test_pillow_primary_image():
5959
assert heif_file_out.tell() == 2
6060

6161

62-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
62+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
6363
def test_heif_info_changing():
6464
xmp = b"LeagueOf"
6565
exif_desc_value = "this is a desc"
@@ -102,7 +102,7 @@ def test_heif_info_changing():
102102
assert not im_out[i].info["exif"] and not im_out[i].info["xmp"]
103103

104104

105-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
105+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
106106
def test_pillow_info_changing():
107107
xmp = b"LeagueOf"
108108
exif_desc_value = "this is a desc"
@@ -150,7 +150,7 @@ def test_pillow_info_changing():
150150
assert not im_out.info["exif"] and not im_out.info["xmp"]
151151

152152

153-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
153+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
154154
def test_heif_iptc_metadata():
155155
heif_buf = create_heif((64, 64))
156156
data = (
@@ -175,7 +175,7 @@ def test_heif_iptc_metadata():
175175
assert im_out.info["metadata"][0]["data"] == data
176176

177177

178-
@pytest.mark.skipif(not hevc_enc, reason="Requires HEIF encoder.")
178+
@pytest.mark.skipif(not hevc_enc(), reason="Requires HEIF encoder.")
179179
def test_pillow_iptc_metadata():
180180
heif_buf = create_heif((64, 64))
181181
data = (

0 commit comments

Comments
 (0)