Skip to content

Commit 17facab

Browse files
committed
Generate baseline hashes during tests to reduce flakiness
1 parent 29fd890 commit 17facab

16 files changed

+45
-418
lines changed

tests/helpers.py

-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from pathlib import Path
32

43
import matplotlib
@@ -20,15 +19,11 @@ def skip_if_format_unsupported(file_format, using_hashes=False):
2019
pytest.skip('SVG comparison is only supported in Matplotlib 3.3 and above')
2120

2221
if using_hashes:
23-
2422
if file_format == 'pdf' and MPL_VERSION < Version('2.1'):
2523
pytest.skip('PDF hashes are only deterministic in Matplotlib 2.1 and above')
2624
elif file_format == 'eps' and MPL_VERSION < Version('2.1'):
2725
pytest.skip('EPS hashes are only deterministic in Matplotlib 2.1 and above')
2826

29-
if using_hashes and not sys.platform.startswith('linux'):
30-
pytest.skip('Hashes for vector graphics are only provided in the hash library for Linux')
31-
3227
if file_format != 'png' and file_format not in converter:
3328
if file_format == 'svg':
3429
pytest.skip('Comparing SVG files requires inkscape to be installed')

tests/subtests/result_hashes/mpl33_ft261.json

-34
This file was deleted.

tests/subtests/result_hashes/mpl34_ft261.json

-34
This file was deleted.

tests/subtests/result_hashes/mpl35_ft261.json

-34
This file was deleted.

tests/subtests/result_hashes/mpl36_ft261.json

-34
This file was deleted.

0 commit comments

Comments
 (0)