summaryrefslogtreecommitdiff
path: root/tests/test_runner
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-06-14 23:11:51 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-06-14 23:16:15 +0200
commitc3df86661955f218de4788a57338bb23428f5525 (patch)
treed385c6358b7255742beb37c2d3bb77b67913106c /tests/test_runner
parentf6567578887b7cc4efb0006ac4a3a5ba7a1c2cc7 (diff)
downloaddjango-c3df86661955f218de4788a57338bb23428f5525.tar.gz
Fixed #20603 -- Made the test suite faster.
By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
Diffstat (limited to 'tests/test_runner')
-rw-r--r--tests/test_runner/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py
index 03a3619c7e..0dc7a0155a 100644
--- a/tests/test_runner/tests.py
+++ b/tests/test_runner/tests.py
@@ -9,7 +9,7 @@ from optparse import make_option
from django.core.exceptions import ImproperlyConfigured
from django.core.management import call_command
from django import db
-from django.test import runner, TransactionTestCase, skipUnlessDBFeature
+from django.test import runner, TestCase, TransactionTestCase, skipUnlessDBFeature
from django.test.testcases import connections_support_transactions
from django.test.utils import IgnorePendingDeprecationWarningsMixin
from django.utils import unittest
@@ -240,7 +240,9 @@ class ModulesTestsPackages(IgnorePendingDeprecationWarningsMixin, unittest.TestC
self.assertRaises(ImportError, get_tests, module)
-class Sqlite3InMemoryTestDbs(unittest.TestCase):
+class Sqlite3InMemoryTestDbs(TestCase):
+
+ available_apps = []
@unittest.skipUnless(all(db.connections[conn].vendor == 'sqlite' for conn in db.connections),
"This is a sqlite-specific issue")