Skip to content

Commit 735f15a

Browse files
committed
unpin pytest in noxfil jupyter notebook tests
1 parent 5fbfedc commit 735f15a

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

noxfile.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,18 @@ def test_jupyter_notebook(session):
7575
)
7676
)
7777
deps(session, editable_install=False)
78-
# pytest pinned due to https://github.com/computationalmodelling/nbval/issues/180
79-
session.install("jupyter", "nbval", "pytest<7.0.0")
80-
# Ignore deprecation warnings raised by jupyter_client in Python 3.10
81-
# https://github.com/jupyter/jupyter_client/issues/713
78+
session.install("jupyter", "nbval")
8279
extra_flags = ["-Wignore::ResourceWarning"]
83-
if session.python == "3.10":
84-
extra_flags.append(
85-
"-Wdefault:There is no current event loop:DeprecationWarning"
86-
)
80+
extra_flags.extend(
81+
[
82+
# Ignore deprecation warnings raised by jupyter_client in Python 3.10
83+
# https://github.com/jupyter/jupyter_client/issues/713
84+
"-Wdefault:There is no current event loop:DeprecationWarning",
85+
# Block warning issued by nbval
86+
# https://github.com/computationalmodelling/nbval/issues/180
87+
"-Wdefault::pytest.PytestRemovedIn8Warning",
88+
]
89+
)
8790
session.run(
8891
"pytest", "--nbval", "docs/notebook/Tutorial.ipynb", *extra_flags, silent=True
8992
)

0 commit comments

Comments
 (0)