ignore_matplotlib_warning
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 10 Nov 2019 16:35:41 +0000 (16:35 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 10 Nov 2019 16:35:41 +0000 (16:35 +0000)
New in Python 3.8

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_matplotlib_warning.patch

pandas/util/testing.py

index a8f0d0da52e1f4fb47f00b8891b98610d9bedc52..3f9541fef34aaa295b050ffe49acc08a57bb6557 100644 (file)
@@ -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__,