From 93bd2b838e083471f24c5302294dff4273820bd1 Mon Sep 17 00:00:00 2001 From: Johannes Kasimir Date: Mon, 10 Aug 2026 09:37:17 +0200 Subject: [PATCH] test: filter deprecation warning with numpy>=2.5 and matplotlib<3.11 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 61f905e7..bb1f4348 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,9 @@ filterwarnings = [ 'ignore:Parsing dates involving a day of month without a year:DeprecationWarning', # Should be removed once we lower pin a matplotlib version that respects the deprecation 'ignore:.*parameter is deprecated and will be removed in Pillow 13.*:DeprecationWarning', + # Matplotlib <= 3.10 uses a generic-unit NaT, which is deprecated in NumPy 2.5. + # Remove once the minimum supported Matplotlib version is >= 3.11. + "ignore:The 'generic' unit for NumPy timedelta is deprecated:DeprecationWarning:matplotlib[.]dates", # Warnings related to pyparsing deprecations: this is fixed in mpl==3.10.8 onwards "ignore:'parseString' deprecated:DeprecationWarning", "ignore:'resetCache' deprecated:DeprecationWarning",