summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-08 15:37:59 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-08 15:37:59 +0000
commit68efb0b0c16f902a426078dca96fe9e7dbf4c6f3 (patch)
tree4bc8524e2eccb41aa0593578c2ddc9481eaf5873
parent2b87347049eb0f20e26d6b41f076aa1ee6196132 (diff)
Fixed #14274 -- Added admonition about using -Wall when you run tests. Thanks to Eric Holscher for the suggestion and draft, and to timo for contributions to the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/topics/testing.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index e2363cc373..54717d3159 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -309,6 +309,15 @@ can press ``Ctrl-C`` a second time and the test run will halt immediately,
but not gracefully. No details of the tests run before the interruption will
be reported, and any test databases created by the run will not be destroyed.
+.. admonition:: Test with warnings enabled
+
+ It is a good idea to run your tests with ``python -Wall manage.py
+ test``. This will allow you to catch any deprecation warnings that
+ might be in your code. Django (as well as many other libraries) use
+ warnings to flag when features are deprecated. It can also flag
+ areas in your code that are not strictly wrong, but may benefit
+ from a better implementation.
+
Running tests outside the test runner
-------------------------------------