Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51a3541 + d35adbd commit 67f9d6bCopy full SHA for 67f9d6b
1 file changed
lib/matplotlib/tests/test_contour.py
@@ -11,6 +11,7 @@
11
from matplotlib.colors import LogNorm, same_color
12
import matplotlib.patches as mpatches
13
from matplotlib.testing.decorators import check_figures_equal, image_comparison
14
+from packaging.version import parse as parse_version
15
import pytest
16
17
@@ -256,7 +257,8 @@ def test_contour_datetime_axis():
256
257
258
@image_comparison(['contour_test_label_transforms.png'],
259
remove_text=True, style='mpl20',
- tol=0 if platform.machine() == 'x86_64' else 0.005)
260
+ tol=1 if parse_version(np.version.version).major < 2 else
261
+ 0 if platform.machine() == 'x86_64' else 0.005)
262
def test_labels():
263
# Adapted from pylab_examples example code: contour_demo.py
264
# see issues #2475, #2843, and #2818 for explanation
0 commit comments