Code

Ticket #3253: test_errors.diff

File test_errors.diff, 345 bytes (added by paulegan@…, 7 years ago)

Return value should count errors as well as failures

Line 
1--- /usr/local/src/django_src/django/test/simple.py     2007-03-27 17:40:31.000000000 +0100
2+++ /usr/local/lib/python2.5/site-packages/django/test/simple.py        2007-03-27 17:23:12.000000000 +0100
3@@ -84,4 +84,5 @@
4     
5     teardown_test_environment()
6     
7-    return len(result.failures)
8+    return len(result.failures) + len(result.errors)
9+