Skip to content

Commit 6507c0e

Browse files
committed
Error on specific warnings
This also skips the RedirectsPanel's deprecation warning from raising errors.
1 parent 7061300 commit 6507c0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ passenv=
4343
GITHUB_*
4444
setenv =
4545
PYTHONPATH = {toxinidir}
46-
PYTHONWARNINGS = default,ignore:The RedirectsPanel is deprecated:DeprecationWarning
46+
PYTHONWARNINGS =\
47+
error::ResourceWarning,\
48+
error::DeprecationWarning,\
49+
error::PendingDeprecationWarning,\
50+
ignore:The RedirectsPanel is deprecated:DeprecationWarning
4751
DB_NAME = {env:DB_NAME:debug_toolbar}
4852
DB_USER = {env:DB_USER:debug_toolbar}
4953
DB_HOST = {env:DB_HOST:localhost}

0 commit comments

Comments
 (0)