Skip to content

Commit

Permalink
strict=True in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed May 22, 2022
1 parent 672467c commit ea38899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def test_read_empty():

def test_read_malformed_header():
with pytest.raises(PdfReadError) as exc:
PdfReader(io.BytesIO(b"foo"))
PdfReader(io.BytesIO(b"foo"), strict=True)
assert exc.value.args[0] == "PDF starts with 'foo', but '%PDF-' expected"


Expand Down

0 comments on commit ea38899

Please sign in to comment.