Browse Source

Fixed #27423 -- Simplified sys.exit() for indicating test failures.

Ana Balica 8 years ago
parent
commit
bafc9f9c33
2 changed files with 2 additions and 2 deletions
  1. 1 1
      django/core/management/commands/test.py
  2. 1 1
      tests/runtests.py

+ 1 - 1
django/core/management/commands/test.py

@@ -61,4 +61,4 @@ class Command(BaseCommand):
         failures = test_runner.run_tests(test_labels)
 
         if failures:
-            sys.exit(bool(failures))
+            sys.exit(1)

+ 1 - 1
tests/runtests.py

@@ -483,4 +483,4 @@ if __name__ == "__main__":
             options.exclude_tags,
         )
         if failures:
-            sys.exit(bool(failures))
+            sys.exit(1)