Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3253 -- Included test errors in the return code.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c1a73d80da65694319d803160b5e400e11318213 1 parent aebd5f9
Russell Keith-Magee authored March 29, 2007
2  django/test/simple.py
@@ -84,5 +84,5 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
84 84
     
85 85
     teardown_test_environment()
86 86
     
87  
-    return len(result.failures)
  87
+    return len(result.failures) + len(result.errors)
88 88
     
3  docs/testing.txt
@@ -468,7 +468,8 @@ failed::
468 468
 
469 469
     FAILED (failures=1)
470 470
 
471  
-The return code for the script will indicate the number of tests that failed.
  471
+The return code for the script is the total number of failed and erroneous 
  472
+tests. If all the tests pass, the return code is 0.
472 473
 
473 474
 Regardless of whether the tests pass or fail, the test database is destroyed when
474 475
 all the tests have been executed. 

0 notes on commit c1a73d8

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