Skip to content

Commit

Permalink
TST: Add xfail for decryption fail (#1125)
Browse files Browse the repository at this point in the history
See #1088
  • Loading branch information
MartinThoma committed Jul 17, 2022
1 parent 8a010a5 commit cd87bbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,12 @@ def test_text_extraction_issue_1091():
reader = PdfReader(stream)
for page in reader.pages:
page.extract_text()


@pytest.mark.xfail(reason="#1088")
def test_empyt_password_1088():
url = "https://corpora.tika.apache.org/base/docs/govdocs1/941/941536.pdf"
name = "tika-941536.pdf"
stream = BytesIO(get_pdf_from_url(url, name=name))
reader = PdfReader(stream)
len(reader.pages)

0 comments on commit cd87bbb

Please sign in to comment.