Fix tests with Matplotlib 3.8.0
This commit is contained in:
parent
138595d962
commit
feb2384c05
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
From 09d403da6d8134a35bba90b7554cfe502877de57 Mon Sep 17 00:00:00 2001
|
||||
From 09ea43429f1cce6dbd67f17f29cdba22414886c5 Mon Sep 17 00:00:00 2001
|
||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||
Date: Mon, 26 Feb 2018 02:42:50 -0500
|
||||
Subject: [PATCH] Increase tolerance for new FreeType.
|
||||
|
|
@ -12,7 +12,7 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|||
4 files changed, 18 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/lib/cartopy/tests/mpl/test_examples.py b/lib/cartopy/tests/mpl/test_examples.py
|
||||
index 76f76d29..5eaeef08 100644
|
||||
index 76f76d29..e92035ca 100644
|
||||
--- a/lib/cartopy/tests/mpl/test_examples.py
|
||||
+++ b/lib/cartopy/tests/mpl/test_examples.py
|
||||
@@ -34,7 +34,7 @@ def test_global_map():
|
||||
|
|
@ -20,7 +20,7 @@ index 76f76d29..5eaeef08 100644
|
|||
@pytest.mark.mpl_image_compare(
|
||||
filename='contour_label.png',
|
||||
- tolerance=3.9 if MPL_VERSION.release[:2] >= (3, 8) else 0.5)
|
||||
+ tolerance=10.4)
|
||||
+ tolerance=11.1 if MPL_VERSION.release[:2] >= (3, 8) else 10.4)
|
||||
def test_contour_label():
|
||||
from cartopy.tests.mpl.test_caching import sample_data
|
||||
fig = plt.figure()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue