Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/matplotlib/tests/test_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from matplotlib.colors import LogNorm, same_color
import matplotlib.patches as mpatches
from matplotlib.testing.decorators import check_figures_equal, image_comparison
from packaging.version import parse as parse_version
import pytest


Expand Down Expand Up @@ -256,7 +257,8 @@ def test_contour_datetime_axis():

@image_comparison(['contour_test_label_transforms.png'],
remove_text=True, style='mpl20',
tol=0 if platform.machine() == 'x86_64' else 0.005)
tol=1 if parse_version(np.version.version).major < 2 else
0 if platform.machine() == 'x86_64' else 0.005)
def test_labels():
# Adapted from pylab_examples example code: contour_demo.py
# see issues #2475, #2843, and #2818 for explanation
Expand Down
Loading