Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@freakboy3742 freakboy3742 authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  django/test/simple.py
  2. +2 −1  docs/testing.txt
View
2  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)
View
3  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.

0 comments on commit c1a73d8

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