pytest picky about list vs tuple

This commit is contained in:
James R. Barlow
2020-04-15 03:16:51 -07:00
parent 509e75eaff
commit 41756ba063
+4 -2
View File
@@ -62,5 +62,7 @@ def test_tqdm_console():
def test_language_list():
with pytest.raises(ocrmypdf.exceptions.InputFileError):
ocrmypdf.ocr('doesnotexist.pdf', '_.pdf', language=['eng', 'ita'])
with pytest.raises(
(ocrmypdf.exceptions.InputFileError, ocrmypdf.exceptions.MissingDependencyError)
):
ocrmypdf.ocr('doesnotexist.pdf', '_.pdf', language=['eng', 'deu'])