From cae52bbb9282ffebea1fc0e13205a3cc37338ff6 Mon Sep 17 00:00:00 2001 From: int3l Date: Mon, 7 Sep 2020 16:32:25 +0300 Subject: [PATCH] Fix linting: assertion logic --- tests/pytesseract_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytesseract_test.py b/tests/pytesseract_test.py index a937c73e..e40c4a74 100644 --- a/tests/pytesseract_test.py +++ b/tests/pytesseract_test.py @@ -293,7 +293,7 @@ def test_image_to_data_common_output(test_file_small, output): elif output is Output.DICT: confidence_values = expected_dict_result.pop('conf', None) - assert confidence_values != None + assert confidence_values is not None assert 0 <= confidence_values[-1] <= 100 assert result == expected_dict_result