Skip to content

Commit 96546cc

Browse files
committed
Error on deprecation and pending deprecation warnings
Erroring on deprecation or pending deprecation warnings means they are caught early. This will avoid the cycle of releasing with 'support for Django X', then chasing all the deprecation warnings one-by-one. Instead, when a new Django version is added to the test matrix, it will fail until all the relevant warnings are fixed. This avoids passing these warnings on to users, some of whom don't upgrade until they are all fixed.
1 parent 79c37d0 commit 96546cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DJANGO =
1414
master: djangomaster
1515

1616
[testenv]
17-
commands = ./runtests.py --fast --coverage {posargs}
17+
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --fast --coverage {posargs}
1818
envdir = {toxworkdir}/venvs/{envname}
1919
setenv =
2020
PYTHONDONTWRITEBYTECODE=1

0 commit comments

Comments
 (0)