Skip to content

Commit 745884f

Browse files
committed
add instructions for how to suppress warnings
1 parent d4318b5 commit 745884f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def test(session):
4343

4444
options = session.posargs
4545
# -W=error raises pytest warnings to errors so they are caught by CI
46+
# to exclude some warnings, see
47+
# https://docs.python.org/3/library/warnings.html#temporarily-suppressing-warnings
4648
session.run('pytest', '--ignore', 'examples/', '-v', '-W=error', *options)
4749

4850

0 commit comments

Comments
 (0)