From dd9ec2d254e93bbe7ee43714423c9d70f6a48982 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 10 Nov 2019 16:35:41 +0000 Subject: [PATCH] ignore_matplotlib_warning New in Python 3.8 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_matplotlib_warning.patch --- pandas/util/testing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index a8f0d0da..3f9541fe 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -2692,6 +2692,8 @@ def assert_produces_warning( ) assert actual_warning.filename == caller.filename, msg else: + if actual_warning.category==DeprecationWarning and "PY_SSIZE_T_CLEAN will be required for '#' formats" in str(actual_warning.message) and 'matplotlib' in actual_warning.filename: + continue extra_warnings.append( ( actual_warning.category.__name__, -- 2.30.2