Ticket #11615: test-runner-exit-status.diff

File test-runner-exit-status.diff, 448 bytes (added by Chris Lamb, 15 years ago)
  • django/core/management/commands/test.py

    diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py
    index 8ebf3da..21e1e51 100644
    a b class Command(BaseCommand):  
    2222
    2323        failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive)
    2424        if failures:
    25             sys.exit(failures)
     25            sys.exit(bool(failures))
Back to Top