Skip to content

Commit

Permalink
Changing minimum MPL to 2.2.2 and removing contour label tolerance.
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas committed Aug 20, 2020
1 parent a59015a commit 8087e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
matrix:
- NAME="Minimum dependencies."
PYTHON_VERSION=3.7
PACKAGES="cython=0.28.5 matplotlib=2.2.3 numpy=1.16 owslib=0.17 proj4=5.2.0 scipy=1.2.0"
PACKAGES="cython=0.28.5 matplotlib=2.2.2 numpy=1.16 owslib=0.17 proj4=5.2.0 scipy=1.2.0"
- NAME="Latest everything."
PYTHON_VERSION=3.8
PACKAGES="cython fiona matplotlib-base numpy proj pykdtree scipy"
Expand Down
7 changes: 1 addition & 6 deletions lib/cartopy/tests/mpl/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ def test_global_map():
ax.plot([-0.08, 132], [51.53, 43.17], transform=ccrs.Geodetic())


if MPL_VERSION < '3':
contour_labels_tolerance = 9.8
else:
contour_labels_tolerance = 0

@pytest.mark.natural_earth
@ExampleImageTesting(['contour_label'], tolerance=contour_labels_tolerance)
@ExampleImageTesting(['contour_label'], tolerance=0)
def test_contour_label():
from cartopy.tests.mpl.test_caching import sample_data
fig = plt.figure()
Expand Down

0 comments on commit 8087e51

Please sign in to comment.