diff --git a/.gitignore b/.gitignore index 9d8b83b..6239466 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ !/.gitignore !/.github !/.ruff.toml +__pycache__ /dist /tests/data/result /python/cykooz/resizer/*.so diff --git a/tests/test_alpha.py b/tests/test_alpha.py index 40adeb9..7d64af1 100644 --- a/tests/test_alpha.py +++ b/tests/test_alpha.py @@ -47,7 +47,7 @@ def test_multiply_alpha_pil( mul_div = AlphaMulDiv() mul_div.cpu_extensions = cpu_extensions if mul_div.cpu_extensions != cpu_extensions: - raise pytest.skip(f'{cpu_extensions} instruction not supported by CPU') + raise pytest.skip(f'{cpu_extensions.name} instruction not supported by CPU') image = source_image.copy() assert get_image_checksum(image.tobytes('raw')) == Checksum( @@ -106,7 +106,7 @@ def test_divide_alpha_pil( mul_div = AlphaMulDiv() mul_div.cpu_extensions = cpu_extensions if mul_div.cpu_extensions != cpu_extensions: - raise pytest.skip(f'{cpu_extensions} instruction not supported by CPU') + raise pytest.skip(f'{cpu_extensions.name} instruction not supported by CPU') image = source_image.copy() if image.mode != 'RGBa': diff --git a/tests/test_resizer.py b/tests/test_resizer.py index 8d6e0ce..58ddb4e 100644 --- a/tests/test_resizer.py +++ b/tests/test_resizer.py @@ -94,7 +94,7 @@ def _resize_raw( resizer = Resizer() resizer.cpu_extensions = cpu_extensions if resizer.cpu_extensions != cpu_extensions: - raise pytest.skip(f'{cpu_extensions} instruction not supported by CPU') + raise pytest.skip(f'{cpu_extensions.name} instruction not supported by CPU') resizer.resize( src_image, @@ -124,7 +124,7 @@ def _resize_pil( resizer = Resizer() resizer.cpu_extensions = cpu_extensions if resizer.cpu_extensions != cpu_extensions: - raise pytest.skip(f'{cpu_extensions} instruction not supported by CPU') + raise pytest.skip(f'{cpu_extensions.name} instruction not supported by CPU') resizer.resize_pil( src_image,