Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e73e6e

Browse files
authored
Always check XMLPacket value (#9113)
2 parents 25db482 + a6acc67 commit 9e73e6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/test_file_libtiff.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ def test_xmlpacket_tag(
365365

366366
with Image.open(out) as reloaded:
367367
assert isinstance(reloaded, TiffImagePlugin.TiffImageFile)
368-
if 700 in reloaded.tag_v2:
369-
assert reloaded.tag_v2[700] == b"xmlpacket tag"
368+
assert reloaded.tag_v2[700] == b"xmlpacket tag"
370369

371370
def test_int_dpi(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
372371
# issue #1765

0 commit comments

Comments
 (0)