From 2431739e0bec247550dfaf76797a036d32ff4f3f Mon Sep 17 00:00:00 2001 From: Chiara Marmo Date: Tue, 9 Jan 2024 15:46:55 +0100 Subject: [PATCH] Filter `DeprecationWarning` in failing test for python 3.12 (#523) * Filter DeprecationWarning. * Update python versions in CI. * Apply suggestions from code review Co-authored-by: Eric Larson --------- Co-authored-by: Eric Larson --- .github/workflows/test.yml | 4 ++-- numpydoc/tests/test_validate.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1af5e7a5..3d9c7979 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [Ubuntu] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] sphinx-version: [ "sphinx==5.0", @@ -76,7 +76,7 @@ jobs: strategy: matrix: os: [ubuntu] - python-version: ["3.9", "3.10"] + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/numpydoc/tests/test_validate.py b/numpydoc/tests/test_validate.py index d41e4bd0..0671684b 100644 --- a/numpydoc/tests/test_validate.py +++ b/numpydoc/tests/test_validate.py @@ -1348,6 +1348,7 @@ def test_bad_generic_functions(self, capsys, func): assert isinstance(errors, list) assert errors + @pytest.mark.filterwarnings("ignore::DeprecationWarning") @pytest.mark.parametrize( "klass,func,msgs", [