99pillow_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." )
1313def 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." )
3838def 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." )
6363def 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." )
106106def 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." )
154154def 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." )
179179def test_pillow_iptc_metadata ():
180180 heif_buf = create_heif ((64 , 64 ))
181181 data = (
0 commit comments