We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a66be9 commit 435c92bCopy full SHA for 435c92b
tests/textcode/test_pdf.py
@@ -80,10 +80,9 @@ def test_get_text_lines_can_parse_faulty_broadcom_doc(self):
80
def test_pdfminer_can_parse_apache_fop_test_pdf(self):
81
test_file = self.get_test_loc('pdf/fop_test_pdf_1.5_test.pdf')
82
result = pdf.get_text_lines(test_file)
83
- try:
84
- assert result == apache_fop_expected
85
- except AssertionError:
86
- assert result == apache_fop_expected_2020
+ if result == apache_fop_expected:
+ return
+ assert result == apache_fop_expected_2020
87
88
def test_numbered_text_lines_does_not_fail_on_autocad_test_pdf(self):
89
test_file = self.get_test_loc('pdf/AutoCad_Diagram.pdf')
0 commit comments