diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-06-09 17:22:24 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-06-09 17:22:24 +0200 |
| commit | ef906b163202679413f1fdae7106b8de86477dbe (patch) | |
| tree | d07f349d1c620987298a8b04246634f7953011b0 | |
| parent | ad47364dd324508e8332ea853da59772431398aa (diff) | |
Removed test of connection features before setting up databases
| -rw-r--r-- | tests/regressiontests/test_runner/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/regressiontests/test_runner/tests.py b/tests/regressiontests/test_runner/tests.py index 89182872bd..8c6dabf771 100644 --- a/tests/regressiontests/test_runner/tests.py +++ b/tests/regressiontests/test_runner/tests.py @@ -251,11 +251,10 @@ class Sqlite3InMemoryTestDbs(unittest.TestCase): }, }) other = db.connections['other'] - self.assertIsNone(other.features.supports_transactions) DjangoTestSuiteRunner(verbosity=0).setup_databases() msg = "DATABASES setting '%s' option set to sqlite3's ':memory:' value shouldn't interfere with transaction support detection." % option # Transaction support should be properly initialised for the 'other' DB - self.assertIsNotNone(other.features.supports_transactions, msg) + self.assertTrue(other.features.supports_transactions, msg) # And all the DBs should report that they support transactions self.assertTrue(connections_support_transactions(), msg) finally: |
