Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Apr 16, 2022
1 parent a074f31 commit 2e5a916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import pytest

import PyPDF2.utils
from PyPDF2 import PdfFileReader
from PyPDF2.constants import ImageAttributes as IA
from PyPDF2.constants import PageAttributes as PG
from PyPDF2.constants import Ressources as RES
from PyPDF2.errors import PdfReadError
from PyPDF2.filters import _xobj_to_image

TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -194,7 +194,7 @@ def test_get_images_raw(strict, with_prev_0, should_fail):
)
pdf_stream = io.BytesIO(pdf_data)
if should_fail:
with pytest.raises(PyPDF2.utils.PdfReadError):
with pytest.raises(PdfReadError):
PdfFileReader(pdf_stream, strict=strict)
else:
PdfFileReader(pdf_stream, strict=strict)
Expand Down

0 comments on commit 2e5a916

Please sign in to comment.