summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mssql/provision.py
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2020-02-26 12:50:01 -0700
committerMike Bayer <mike_mp@zzzcomputing.com>2020-03-13 15:04:33 -0400
commit79a53645ba8e6c12aff33d9ba1318ea4328ab7de (patch)
tree85e1d604c42c05ef9784428bff12aeb8547ff397 /lib/sqlalchemy/dialects/mssql/provision.py
parent67e51ea5dcb3955105c35bf8149785bd72c7a521 (diff)
downloadsqlalchemy-79a53645ba8e6c12aff33d9ba1318ea4328ab7de.tar.gz
Fix tests failing for SQLite file databases; repair provisioning
1. ensure provision.py loads dialect implementations when running reap_dbs.py. Reapers haven't been working since 598f2f7e557073f29563d4d567f43931fc03013f . 2. add some exclusion rules to allow the sqlite_file target to work; add to tox. 3. add reap dbs target for SQLite, repair SQLite drop_db routine which also wasn't doing the right thing for memory databases etc. 4. Fix logging in provision files, as the main provision logger is the one that's enabled by reap_dbs and maybe others, have all the provision files use the provision logger. Fixes: #5180 Fixes: #5168 Change-Id: Ibc1b0106394d20f5bcf847f37b09d185f26ac9b5
Diffstat (limited to 'lib/sqlalchemy/dialects/mssql/provision.py')
-rw-r--r--lib/sqlalchemy/dialects/mssql/provision.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/provision.py b/lib/sqlalchemy/dialects/mssql/provision.py
index 558ad7a7a..a10043db1 100644
--- a/lib/sqlalchemy/dialects/mssql/provision.py
+++ b/lib/sqlalchemy/dialects/mssql/provision.py
@@ -1,16 +1,12 @@
-import logging
-
from ... import create_engine
from ... import exc
from ...testing.provision import create_db
from ...testing.provision import drop_db
+from ...testing.provision import log
from ...testing.provision import run_reap_dbs
from ...testing.provision import update_db_opts
-log = logging.getLogger(__name__)
-
-
@update_db_opts.for_db("mssql")
def _mssql_update_db_opts(db_url, db_opts):
db_opts["legacy_schema_aliasing"] = False