From: Debian Science Team Date: Wed, 26 Feb 2020 18:45:58 +0000 (+0000) Subject: Don't fail tests on warning from matplotlib X-Git-Tag: archive/raspbian/0.25.3+dfsg2-2+rpi1~1^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e5f310ac563f69d3a70b3c1524f57ec57f4138b;p=pandas.git Don't fail tests on warning from matplotlib 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 330312ac..8ad615be 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -2695,6 +2695,8 @@ def assert_produces_warning( else: if actual_warning.category==UserWarning and "Non-x86 system detected" in str(actual_warning.message) and not bool(re.match('i.?86|x86',platform.uname()[4])): continue + 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__,