summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-03-29 11:59:31 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-03-29 11:59:31 +0000
commitc1a73d80da65694319d803160b5e400e11318213 (patch)
tree7755b714c96403b103afb38b17b74e448557dcd6
parentaebd5f94a22814228966faca91cf1926a14c832a (diff)
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
-rw-r--r--django/test/simple.py2
-rw-r--r--docs/testing.txt3
2 files changed, 3 insertions, 2 deletions
diff --git a/django/test/simple.py b/django/test/simple.py
index 200f150594..fed6237929 100644
--- a/django/test/simple.py
+++ b/django/test/simple.py
@@ -84,5 +84,5 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
teardown_test_environment()
- return len(result.failures)
+ return len(result.failures) + len(result.errors)
\ No newline at end of file
diff --git a/docs/testing.txt b/docs/testing.txt
index b9750efbdb..5b27ae6484 100644
--- a/docs/testing.txt
+++ b/docs/testing.txt
@@ -468,7 +468,8 @@ failed::
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.