mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 11:35:52 +03:00
Test comment too long
This commit is contained in:
parent
ca97e2a3a5
commit
4bb50b1fa7
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user