10000 TST: Update streamplot result for MPL 3.0.0. · QuLogic/cartopy@78424ec · GitHub
[go: up one dir, main page]

Skip to content

Commit 78424ec

Browse files
committed
TST: Update streamplot result for MPL 3.0.0.
This is due to an indexing error in previous versions, cf. matplotlib/matplotlib#11455.
1 parent 6d3c718 commit 78424ec

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed
Loading

lib/cartopy/tests/mpl/test_mpl_integration.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@
3232

3333

3434
_ROB_TOL = 0.5 if ccrs.PROJ4_VERSION < (4, 9) else 0.111
35-
if MPL_VERSION >= '2.1.0':
36-
_STREAMPLOT_IMAGE = 'streamplot'
35+
_STREAMPLOT_STYLE = 'classic'
36+
if MPL_VERSION >= '3.0.0':
37+
_STREAMPLOT_IMAGE = 'streamplot_mpl_3.0.0'
38+
# Should have been the case for anything but _1.4.3, but we don't want to
39+
# regenerate those images again.
40+
_STREAMPLOT_STYLE = 'mpl20'
41+
elif MPL_VERSION >= '2.1.0':
42+
_STREAMPLOT_IMAGE = 'streamplot_mpl_2.1.0'
3743
elif MPL_VERSION >= '2':
38-
_STREAMPLOT_IMAGE = 'streamplot_mpl_2'
44+
_STREAMPLOT_IMAGE = 'streamplot_mpl_2.0.0'
3945
else:
4046
_STREAMPLOT_IMAGE = 'streamplot_mpl_1.4.3'
4147

@@ -601,7 +607,7 @@ def test_barbs_1d_transformed():
601607

602608

603609
@pytest.mark.natural_earth
604-
@ImageTesting([_STREAMPLOT_IMAGE])
610+
@ImageTesting([_STREAMPLOT_IMAGE], style=_STREAMPLOT_STYLE)
605611
def test_streamplot():
606612
x = np.arange(-60, 42.5, 2.5)
607613
y = np.arange(30, 72.5, 2.5)

0 commit comments

Comments
 (0)
0