Skip to content

Commit adcce3c

Browse files
committed
Skip hash comparison for vector graphics not on Linux
1 parent c95621e commit adcce3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_pytest_mpl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ def test_formats(pytester, use_hash_library, passes, file_format):
688688
if use_hash_library and MPL_VERSION >= Version('3.4'):
689689
pytest.skip('No hash library for Matplotlib >= 3.4')
690690

691+
if use_hash_library and file_format != 'png' and not sys.platform.startswith('linux'):
692+
pytest.skip('Hashes for vector graphics are only provided in the hash library for Linux')
693+
691694
if file_format != 'png' and file_format not in converter:
692695
if file_format == 'svg':
693696
pytest.skip('Comparing SVG files requires inkscape to be installed')

0 commit comments

Comments
 (0)