Author: russellm
Date: 2007-03-29 06:59:31 -0500 (Thu, 29 Mar 2007)
New Revision: 4850

Modified:
   django/trunk/django/test/simple.py
   django/trunk/docs/testing.txt
Log:
Fixed #3253 -- Included test errors in the return code.


Modified: django/trunk/django/test/simple.py
===================================================================
--- django/trunk/django/test/simple.py  2007-03-29 11:46:26 UTC (rev 4849)
+++ django/trunk/django/test/simple.py  2007-03-29 11:59:31 UTC (rev 4850)
@@ -84,5 +84,5 @@
     
     teardown_test_environment()
     
-    return len(result.failures)
+    return len(result.failures) + len(result.errors)
     
\ No newline at end of file

Modified: django/trunk/docs/testing.txt
===================================================================
--- django/trunk/docs/testing.txt       2007-03-29 11:46:26 UTC (rev 4849)
+++ django/trunk/docs/testing.txt       2007-03-29 11:59:31 UTC (rev 4850)
@@ -468,7 +468,8 @@
 
     FAILED (failures=1)
 
-The return code for the script will indicate the number of tests that failed.
+The return code for the script is the total number of failed and erroneous 
+tests. If all the tests pass, the return code is 0.
 
 Regardless of whether the tests pass or fail, the test database is destroyed 
when
 all the tests have been executed. 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to