Ticket #12408: test_ordering.diff

File test_ordering.diff, 986 bytes (added by sebleier@…, 15 years ago)
  • django/test/simple.py

    diff --git a/django/test/simple.py b/django/test/simple.py
    index c1f915b..92c7a5d 100644
    a b from django.conf import settings  
    33from django.db.models import get_app, get_apps
    44from django.test import _doctest as doctest
    55from django.test.utils import setup_test_environment, teardown_test_environment
    6 from django.test.testcases import OutputChecker, DocTestRunner, TestCase
     6from django.test.testcases import OutputChecker, DocTestRunner, TestCase, TransactionTestCase
    77
    88# The module name for tests outside models.py
    99TEST_MODULE = 'tests'
    def run_tests(test_labels, verbosity=1, interactive=True, failfast=False, extra_  
    204204    for test in extra_tests:
    205205        suite.addTest(test)
    206206
    207     suite = reorder_suite(suite, (TestCase,))
     207    suite = reorder_suite(suite, (TestCase, doctest.DocTestCase, TransactionTestCase,))
    208208
    209209    old_name = settings.DATABASE_NAME
    210210    from django.db import connection
Back to Top