Permalink
Browse files

Removed test of connection features before setting up databases

  • Loading branch information...
1 parent ad47364 commit ef906b163202679413f1fdae7106b8de86477dbe @claudep claudep committed Jun 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/regressiontests/test_runner/tests.py
View
3 tests/regressiontests/test_runner/tests.py
@@ -251,11 +251,10 @@ def test_transaction_support(self):
},
})
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:

0 comments on commit ef906b1

Please sign in to comment.