mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-29 20:14:55 -04:00
f2e4fcb544
in trying to apply 2020 copyright to files, the pre-commit
hooks complain about random file issues.
- remove old corrections.py utility, this had something to do
with repairing refs in the sphinx docs
- run pre commit hooks on all files
- formatting adjustments to work around code formatting collisions
(long import lines that zimports can't rewrite correctly)
- for 1.3, update conf.py with formatted version
Change-Id: I260744866f69e902eb93665c7c728ee94d3371a2
(cherry picked from commit 748bf710fd)
23 lines
620 B
Python
23 lines
620 B
Python
"""Drop Oracle, SQL Server databases that are left over from a
|
|
multiprocessing test run.
|
|
|
|
Currently the cx_Oracle driver seems to sometimes not release a
|
|
TCP connection even if close() is called, which prevents the provisioning
|
|
system from dropping a database in-process.
|
|
|
|
For SQL Server, databases still remain in use after tests run and
|
|
running a kill of all detected sessions does not seem to release the
|
|
database in process.
|
|
|
|
"""
|
|
import logging
|
|
import sys
|
|
|
|
from sqlalchemy.testing import provision
|
|
|
|
|
|
logging.basicConfig()
|
|
logging.getLogger(provision.__name__).setLevel(logging.INFO)
|
|
|
|
provision.reap_dbs(sys.argv[1])
|