Skip to content

Commit

Permalink
Filter DeprecationWarning in failing test for python 3.12 (#523)
Browse files Browse the repository at this point in the history
* Filter DeprecationWarning.

* Update python versions in CI.

* Apply suggestions from code review

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

---------

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
  • Loading branch information
cmarmo and larsoner committed Jan 9, 2024
1 parent 4663b91 commit 2431739
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions numpydoc/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
[
Expand Down

0 comments on commit 2431739

Please sign in to comment.