Ignore new deprecation warnings
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 10 Jul 2020 05:46:36 +0000 (06:46 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 10 Jul 2020 05:46:36 +0000 (06:46 +0100)
Origin: upstream 8873ab357c9a2a7d3eeeeb1cf1ac63d72a687a75
Bug-Debian: https://bugs.debian.org/964700
Author: Kevin Sheppard
Forwarded: not-needed

Gbp-Pq: Name numpy119_compat.patch

setup.cfg
statsmodels/graphics/tests/test_boxplots.py

index ab7dbf7982dd017a85c8061af8199b2823319b6a..b96895ca0c99eb68f282cb1f0fcdb64cafbc6499 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -17,6 +17,7 @@ filterwarnings =
     ignore:Method .ptp is deprecated:FutureWarning:numpy.core.fromnumeric
     ignore::DeprecationWarning:nbconvert.exporters.exporter_locator
     ignore:Using or importing the ABCs:DeprecationWarning:jinja2.utils
+    ignore:Converting `np.integer`:DeprecationWarning:scipy.stats.morestats
     error:genfromdta:FutureWarning
     error:StataReader:FutureWarning
     error:Estimation of VARMA:statsmodels.tools.sm_exceptions.EstimationWarning
index 65af8441ba7f120d9043fe454a26145a37f42c90..9d8c3bffac7a8cd88bb28d00c365e1b0eae05f19 100644 (file)
@@ -23,6 +23,13 @@ def age_and_labels():
     return age, labels
 
 
+# TODO: Remove once SciPy 1.5.0 is the minimum
+IGNORE_VISIBLE_DEPR = """\
+ignore:Creating an ndarray from ragged nested sequences:\
+numpy.VisibleDeprecationWarning:"""
+
+
+@pytest.mark.filterwarnings(IGNORE_VISIBLE_DEPR)
 @pytest.mark.matplotlib
 def test_violinplot(age_and_labels, close_figures):
     age, labels = age_and_labels
@@ -34,6 +41,7 @@ def test_violinplot(age_and_labels, close_figures):
                           'label_rotation': 30})
 
 
+@pytest.mark.filterwarnings(IGNORE_VISIBLE_DEPR)
 @pytest.mark.matplotlib
 def test_violinplot_bw_factor(age_and_labels, close_figures):
     age, labels = age_and_labels