Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…un 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
  • Loading branch information...
commit de3669d2fa16ea7603b76e9e21e575974916ecf4 1 parent eae8c65
Russell Keith-Magee authored

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  docs/topics/testing.txt
9  docs/topics/testing.txt
@@ -309,6 +309,15 @@ can press ``Ctrl-C`` a second time and the test run will halt immediately,
309 309
 but not gracefully. No details of the tests run before the interruption will
310 310
 be reported, and any test databases created by the run will not be destroyed.
311 311
 
  312
+.. admonition:: Test with warnings enabled
  313
+
  314
+    It is a good idea to run your tests with ``python -Wall manage.py
  315
+    test``. This will allow you to catch any deprecation warnings that
  316
+    might be in your code. Django (as well as many other libraries) use
  317
+    warnings to flag when features are deprecated. It can also flag
  318
+    areas in your code that are not strictly wrong, but may benefit
  319
+    from a better implementation.
  320
+
312 321
 Running tests outside the test runner
313 322
 -------------------------------------
314 323
 

0 notes on commit de3669d

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