Fix test broken in commit 85d6fb8c

This commit is contained in:
James R. Barlow
2024-11-27 15:44:12 -08:00
parent d70296b97a
commit fe89be5dc0
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ def test_ghostscript_mandatory_color_conversion(resources, outpdf):
def test_rasterize_pdf_errors(resources, no_outpdf, caplog):
with patch('ocrmypdf._exec.ghostscript.run') as mock:
# ghostscript can produce
# ghostscript can produce empty files with return code 0
mock.return_value = subprocess.CompletedProcess(
['fakegs'], returncode=0, stdout=b'', stderr=b'error this is an error'
)