Skip to content

Commit 2431739

Browse files
cmarmolarsoner
andauthored
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 <[email protected]> --------- Co-authored-by: Eric Larson <[email protected]>
1 parent 4663b91 commit 2431739

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [Ubuntu]
19-
python-version: ["3.8", "3.9", "3.10", "3.11"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2020
sphinx-version:
2121
[
2222
"sphinx==5.0",
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
matrix:
7878
os: [ubuntu]
79-
python-version: ["3.9", "3.10"]
79+
python-version: ["3.11", "3.12"]
8080
steps:
8181
- uses: actions/checkout@v4
8282

numpydoc/tests/test_validate.py

+1
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,7 @@ def test_bad_generic_functions(self, capsys, func):
13481348
assert isinstance(errors, list)
13491349
assert errors
13501350

1351+
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
13511352
@pytest.mark.parametrize(
13521353
"klass,func,msgs",
13531354
[

0 commit comments

Comments
 (0)