Commits

Mike Bayer  committed f4b9212

- connect immediately on _create_testing_engine to initialize dialect capabilities

  • Participants
  • Parent commits 034f80e

Comments (0)

Files changed (2)

File lib/sqlalchemy/testing/plugin/noseplugin.py

     from sqlalchemy import testing
     global db
     config.db = testing.db = db = engines.testing_engine(db_url, db_opts)
+    config.db.connect().close()
     config.db_opts = db_opts
     config.db_url = db_url
 

File lib/sqlalchemy/testing/requirements.py

     def returning(self):
         """target platform supports RETURNING."""
 
-        self.config.db.connect()
         return exclusions.only_if(
                 lambda: self.config.db.dialect.implicit_returning,
                 "'returning' not supported by database"