Skip to content

Commit

Permalink
MAINT: Issue #416 was fixed by #1015 (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Jul 9, 2022
1 parent 67d962d commit 9b048a2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@

from . import get_pdf_from_url

try:
from Crypto.Cipher import AES # noqa: F401

HAS_PYCRYPTODOME = True
except ImportError:
HAS_PYCRYPTODOME = False

TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
RESOURCE_ROOT = os.path.join(PROJECT_ROOT, "resources")
Expand Down Expand Up @@ -705,7 +712,7 @@ def test_read_not_binary_mode():
PdfReader(f)


@pytest.mark.xfail(reason="#416")
@pytest.mark.skipif(not HAS_PYCRYPTODOME, reason="No pycryptodome")
def test_read_form_416():
url = (
"https://www.fda.gov/downloads/AboutFDA/ReportsManualsForms/Forms/UCM074728.pdf"
Expand Down

0 comments on commit 9b048a2

Please sign in to comment.