Skip to content

Commit

Permalink
name tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francois committed Apr 21, 2024
1 parent d489fc4 commit ec6d4d1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_generic.py
Expand Up @@ -1040,12 +1040,6 @@ def test_checkboxradiobuttonattributes_opt():
assert "/Opt" in CheckboxRadioButtonAttributes.attributes_dict()


def test_name_object_invalid_decode():
stream = BytesIO(b"/\x80\x02\x03")
stream.seek(0)
assert NameObject.read_from_stream(stream) == stream.getvalue().decode("latin1")


def test_indirect_object_invalid_read():
stream = BytesIO(b"0 1 s")
with pytest.raises(PdfReadError) as exc:
Expand Down

0 comments on commit ec6d4d1

Please sign in to comment.