Ticket #12370: ticket_12370.patch

File ticket_12370.patch, 754 bytes (added by Randy Barlow, 15 years ago)

This patch makes us look undumb.

  • django/test/simple.py

     
    166166        bins[0].addTests(bins[i+1])
    167167    return bins[0]
    168168
    169 def run_tests(test_labels, verbosity=1, interactive=True, failfast=False, extra_tests=[]):
     169def run_tests(test_labels, verbosity=1, interactive=True, failfast=False, extra_tests=None):
    170170    """
    171171    Run the unit tests for all the test labels in the provided list.
    172172    Labels must be of the form:
     
    185185
    186186    Returns the number of tests that failed.
    187187    """
     188    if extra_tests is None:
     189        extra_tests = list()
    188190    setup_test_environment()
    189191
    190192    settings.DEBUG = False
Back to Top