]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Turn deprecation notices into warnings
authorStephen Finucane <stephen@that.guru>
Thu, 18 May 2017 20:17:48 +0000 (21:17 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 18 May 2017 20:17:48 +0000 (21:17 +0100)
Django does an excellent job of marking what features are going to
change in upcoming releases through extensive use of the 'warnings' module.

Pass the '-Werror' flag to 'manage.py' in tests, ensuring that any
warnings will result in exceptions instead. This should make upgrades a
mostly painless process going forward.

Signed-off-by: Stephen Finucane <stephen@that.guru>
tox.ini

diff --git a/tox.ini b/tox.ini
index 90f177a88a04359be9455f1230a0e06e18407570..1023c0d2fde1bbba529addaab50f1d44321bc754 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -26,8 +26,8 @@ passenv =
     PW_TEST_DB_PORT DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
     DISPLAY HOME XAUTHORITY
 commands =
-    {toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \
-        '{posargs:patchwork}'
+    python -Werror {toxinidir}/manage.py test --noinput \
+        --liveserver=localhost:9000-9200 '{posargs:patchwork}'
 
 [testenv:bashate]
 deps = bashate>=0.5,<0.6