Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #23 from michelts/master

Make quicktest command compatible with django 1.3
  • Loading branch information...
commit ea002fa9d01c2ea2d7eef53fde3ad1f2a20b0c73 2 parents 062feb9 + fda91f2
@ericholscher authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 test_utils/test_runners/
13 test_utils/test_runners/
@@ -1,4 +1,13 @@
-from django.test.simple import *
+from django.test import TestCase
+from django.test.simple import build_test, reorder_suite, build_suite
+from django.test.utils import setup_test_environment, teardown_test_environment
+from django.test.testcases import connections_support_transactions
+from django.db.models import get_app, get_apps
+from django.conf import settings
+ from django.utils import unittest # django's 1.3 copy of unittest2
+except ImportError:
+ import unittest # system fallback
import os
def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]):
@@ -76,7 +85,7 @@ def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]):
- settings.DATABASES['default']['SUPPORTS_TRANSACTIONS'] = connection.creation._rollback_works()
+ settings.DATABASES['default']['SUPPORTS_TRANSACTIONS'] = connections_support_transactions()
result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
Please sign in to comment.
Something went wrong with that request. Please try again.