Skip to content

Commit a4fb139

Browse files
committed
Fail the test when a DeprecationWarning is raised
1 parent 788f686 commit a4fb139

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.cfg

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ python_files =
2121
test_*.py
2222
# doctest_plus = disabled
2323
addopts =
24-
--strict
24+
--strict-markers
2525
--doctest-modules
2626
--color=yes
2727
--disable-pytest-warnings
28+
filterwarnings =
29+
# error out on deprecation warnings - ensures the code and tests are kept up-to-date
30+
error::DeprecationWarning
31+
# TensorBoard is using NumPy deprecations: ignore them
32+
ignore::DeprecationWarning:tensorboard.*
2833

2934
junit_duration_report = call
3035

0 commit comments

Comments
 (0)