From 1e5f310ac563f69d3a70b3c1524f57ec57f4138b Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 26 Feb 2020 18:45:58 +0000 Subject: [PATCH] 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 --- pandas/util/testing.py | 2 ++ 1 file changed, 2 insertions(+) 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__, -- 2.30.2