Skip to content

Commit be61130

Browse files
committed
Skip forecast plot test for matplotlib > 3.10
1 parent 450ab18 commit be61130

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

climada/engine/test/test_forecast.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525

2626
import fiona
2727
import geopandas as gpd
28+
import matplotlib
2829
import matplotlib.pyplot as plt
2930
import numpy as np
3031
from cartopy.io import shapereader
32+
from packaging.version import Version
3133

3234
from climada import CONFIG
3335
from climada.engine.forecast import FORECAST_PLOT_DIR, Forecast
@@ -106,6 +108,10 @@ def test_Forecast_init_raise(self):
106108
class TestPlot(unittest.TestCase):
107109
"""Test plotting functions from the Forecast class"""
108110

111+
@unittest.skipIf(
112+
Version(matplotlib.__version__) > Version("3.10"),
113+
"Matplotlib shapely issue for this plot function",
114+
)
109115
def test_Forecast_plot(self):
110116
"""Test cplotting functions from the Forecast class"""
111117
## given a forecast based on hazard exposure and vulnerability

0 commit comments

Comments
 (0)