Commit de3669d2 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #14274 -- Added admonition about using -Wall when you run tests....

[1.2.X] 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.

Backport of r14019 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent eae8c651
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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
-------------------------------------