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

This commit is contained in:
Ana Balica 2016-11-03 11:40:59 +00:00 committed by Tim Graham
parent 3158695365
commit bafc9f9c33
2 changed files with 2 additions and 2 deletions

View File

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

View File

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