Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Rewrote 'Test with warnings enabled' section of docs/topics/testing.t…

…xt from [14019] to be clearer

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 40777cb533d153a7772cb53fbcc05c642c6fb097 1 parent bca8aed
@adrianholovaty adrianholovaty authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/topics/testing.txt
10 docs/topics/testing.txt
@@ -311,11 +311,11 @@ 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
- 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
+ It's a good idea to run your tests with Python warnings enabled:
+ ``python -Wall test``. The ``-Wall`` flag tells Python to
+ display deprecation warnings. Django, like many other Python libraries,
+ uses these warnings to flag when features are going away. It also might
+ flag areas in your code that aren't strictly wrong but could benefit
from a better implementation.
Running tests outside the test runner

0 comments on commit 40777cb

Please sign in to comment.
Something went wrong with that request. Please try again.