mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-07-09 16:33:44 -04:00
d539bc3a0f
Change-Id: I0a6c9610b3fd85365ed4c2c199e3cad87ee64022
24 lines
630 B
Python
24 lines
630 B
Python
"""Drop Oracle Database, 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])
|