From: Debian Science Team Date: Sun, 10 Nov 2019 16:35:41 +0000 (+0000) Subject: ignore_matplotlib_warning X-Git-Tag: archive/raspbian/0.25.3+dfsg2-2+rpi1~1^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd9ec2d254e93bbe7ee43714423c9d70f6a48982;p=pandas.git ignore_matplotlib_warning New in Python 3.8 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_matplotlib_warning.patch --- 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__,