소스 검색

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

Ana Balica 8 년 전
부모
커밋
bafc9f9c33
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)