diff --git a/tests/test_acroform.py b/tests/test_acroform.py index 34a4a2d6..26dd8991 100644 --- a/tests/test_acroform.py +++ b/tests/test_acroform.py @@ -22,7 +22,8 @@ def acroform(resources): def test_acroform_and_redo(acroform, no_outpdf): with pytest.raises( - ocrmypdf.exceptions.InputFileError, match='--redo-ocr is not currently possible' + ocrmypdf.exceptions.InputFileError, + match='--redo-ocr (or --mode redo) is not currently possible', ): check_ocrmypdf(acroform, no_outpdf, '--redo-ocr')