From bafc9f9c33a4b126ad956021f4c392174de71541 Mon Sep 17 00:00:00 2001 From: Ana Balica Date: Thu, 3 Nov 2016 11:40:59 +0000 Subject: [PATCH] Fixed #27423 -- Simplified sys.exit() for indicating test failures. --- django/core/management/commands/test.py | 2 +- tests/runtests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 33a0762029..e94fd989f1 100644 --- a/django/core/management/commands/test.py +++ b/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) diff --git a/tests/runtests.py b/tests/runtests.py index be317d347b..00b14b808f 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -483,4 +483,4 @@ if __name__ == "__main__": options.exclude_tags, ) if failures: - sys.exit(bool(failures)) + sys.exit(1)