Skip to content

Commit ef906b1

Browse files
committed
Removed test of connection features before setting up databases
1 parent ad47364 commit ef906b1

File tree

1 file changed

+1
-2
lines changed
  • tests/regressiontests/test_runner

1 file changed

+1
-2
lines changed

tests/regressiontests/test_runner/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,10 @@ def test_transaction_support(self):
251251
},
252252
})
253253
other = db.connections['other']
254-
self.assertIsNone(other.features.supports_transactions)
255254
DjangoTestSuiteRunner(verbosity=0).setup_databases()
256255
msg = "DATABASES setting '%s' option set to sqlite3's ':memory:' value shouldn't interfere with transaction support detection." % option
257256
# Transaction support should be properly initialised for the 'other' DB
258-
self.assertIsNotNone(other.features.supports_transactions, msg)
257+
self.assertTrue(other.features.supports_transactions, msg)
259258
# And all the DBs should report that they support transactions
260259
self.assertTrue(connections_support_transactions(), msg)
261260
finally:

0 commit comments

Comments
 (0)