Skip to content

Commit

Permalink
forms rendering test: improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Mar 12, 2023
1 parent e7b82bb commit 47eed2b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests_old/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,7 @@ def test_render_form(with_forms, exp_color):

pdf = pdfium.PdfDocument(TestFiles.form)
if with_forms:
try:
pdf.init_forms()
except RuntimeError:
assert pdfium.V_PDFIUM_IS_V8
pytest.skip()
pdf.init_forms() if not pdfium.V_PDFIUM_IS_V8 else pytest.skip()

if with_forms:
assert isinstance(pdf.formenv, pdfium.PdfFormEnv)
Expand Down

0 comments on commit 47eed2b

Please sign in to comment.