mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #27423 -- Simplified sys.exit() for indicating test failures.
This commit is contained in:
@@ -61,4 +61,4 @@ class Command(BaseCommand):
|
|||||||
failures = test_runner.run_tests(test_labels)
|
failures = test_runner.run_tests(test_labels)
|
||||||
|
|
||||||
if failures:
|
if failures:
|
||||||
sys.exit(bool(failures))
|
sys.exit(1)
|
||||||
|
|||||||
@@ -483,4 +483,4 @@ if __name__ == "__main__":
|
|||||||
options.exclude_tags,
|
options.exclude_tags,
|
||||||
)
|
)
|
||||||
if failures:
|
if failures:
|
||||||
sys.exit(bool(failures))
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user