From: Debian Science Maintainers Date: Fri, 10 Jul 2020 05:46:36 +0000 (+0100) Subject: Ignore new deprecation warnings X-Git-Tag: archive/raspbian/0.11.1-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bc028973eba8318cc14075e2c566767dba553ef6;p=statsmodels.git Ignore new deprecation warnings Origin: upstream 8873ab357c9a2a7d3eeeeb1cf1ac63d72a687a75 Bug-Debian: https://bugs.debian.org/964700 Author: Kevin Sheppard Forwarded: not-needed Gbp-Pq: Name numpy119_compat.patch --- diff --git a/setup.cfg b/setup.cfg index ab7dbf7..b96895c 100644 --- 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 diff --git a/statsmodels/graphics/tests/test_boxplots.py b/statsmodels/graphics/tests/test_boxplots.py index 65af844..9d8c3bf 100644 --- a/statsmodels/graphics/tests/test_boxplots.py +++ b/statsmodels/graphics/tests/test_boxplots.py @@ -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