diff --git a/tests/pytesseract_test.py b/tests/pytesseract_test.py index e40c4a74..b1ac01d3 100644 --- a/tests/pytesseract_test.py +++ b/tests/pytesseract_test.py @@ -292,7 +292,7 @@ def test_image_to_data_common_output(test_file_small, output): assert isinstance(result, bytes) elif output is Output.DICT: - confidence_values = expected_dict_result.pop('conf', None) + confidence_values = result.pop('conf', None) assert confidence_values is not None assert 0 <= confidence_values[-1] <= 100 assert result == expected_dict_result