Ticket #10832: 10832-gis-test-runner-reorders-test-suite.diff

File 10832-gis-test-runner-reorders-test-suite.diff, 760 bytes (added by Sean Legassick, 15 years ago)
  • django/contrib/gis/tests/__init__.py

     
    11import sys, unittest
     2from django.test.simple import reorder_suite
     3from django.test.testcases import TestCase
    24from django.utils.importlib import import_module
    35
    46def geo_suite():
     
    193195        for test in extra_tests:
    194196            suite.addTest(test)
    195197
     198    suite = reorder_suite(suite, (TestCase,))
     199
    196200    # Executing the tests (including the model tests), and destorying the
    197201    # test database after the tests have completed.
    198202    result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
Back to Top