Test comment too long

This commit is contained in:
Andrew Murray 2023-01-31 22:24:47 +11:00
parent ca97e2a3a5
commit 4bb50b1fa7

View File

@ -390,6 +390,10 @@ def test_custom_comment():
# Lazy method to determine if the comment is in the image generated
assert bytes(unique_comment, "utf-8") in data
too_long_comment = " " * 65532
with pytest.raises(ValueError):
test_card.save(output_stream, "JPEG2000", comment=too_long_comment)
@skip_unless_feature_version("jpg_2000", "2.4.0")
def test_plt_marker():