Author: russellm
Date: 2010-10-08 10:46:49 -0500 (Fri, 08 Oct 2010)
New Revision: 14027

Modified:
   django/branches/releases/1.2.X/docs/topics/testing.txt
Log:
[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.

Modified: django/branches/releases/1.2.X/docs/topics/testing.txt
===================================================================
--- django/branches/releases/1.2.X/docs/topics/testing.txt      2010-10-08 
15:46:27 UTC (rev 14026)
+++ django/branches/releases/1.2.X/docs/topics/testing.txt      2010-10-08 
15:46:49 UTC (rev 14027)
@@ -309,6 +309,15 @@
 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
 -------------------------------------
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to