Fix some test failures missed in prev commit

This commit is contained in:
James R. Barlow
2019-03-06 13:28:50 -08:00
parent dc616bb507
commit 486dc7e22c
3 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -576,8 +576,6 @@ def test_stdout(spoof_tesseract_noop, ocrmypdf_exec, resources, outpdf):
stdin=DEVNULL,
env=spoof_tesseract_noop,
)
out, err = p.communicate()
assert p.returncode == ExitCode.ok
assert qpdf.check(output_file, log=None)
@@ -857,7 +855,7 @@ def test_compression_preserved(
if im.mode in ('RGBA', 'LA'):
# If alpha image is input, expect an error
assert p.returncode != ExitCode.ok and b'alpha' in p.stderr
assert p.returncode != ExitCode.ok and 'alpha' in p.stderr
return
assert p.returncode == ExitCode.ok, p.stderr
+1 -1
View File
@@ -120,7 +120,7 @@ def test_pagesize_consistency_tess4(ensure_tess4, resources, outpdf):
'--clean' if pytest.helpers.have_unpaper() else None,
'--deskew',
'--remove-background',
'--clean-final',
'--clean-final' if pytest.helpers.have_unpaper() else None,
env=ensure_tess4,
)
+1
View File
@@ -20,6 +20,7 @@ from math import isclose
import pytest
from ocrmypdf.exceptions import ExitCode
from ocrmypdf.pdfinfo import PdfInfo
check_ocrmypdf = pytest.helpers.check_ocrmypdf
run_ocrmypdf = pytest.helpers.run_ocrmypdf