Skip to content

Commit ddc44b3

Browse files
authored
Fix test case for the i/o error handling cases
1 parent f06a800 commit ddc44b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pytesseract_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ def test_main_not_found_cases(
308308

309309
captured_stderr = capsys.readouterr().err
310310
assert (
311-
'[Errno 2] No such file or directory' in captured_stderr
311+
'No such file or directory' in captured_stderr
312312
and
313-
captured_stderr.endswith(test_invalid_file)
313+
test_invalid_file in captured_stderr
314314
)
315315

316316
monkeypatch.setattr(

0 commit comments

Comments
 (0)