mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-27 02:52:53 -04:00
2efd89d029
Change-Id: Ida0d01ae9bcc0573b86e24fddea620a38c962822
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.
|
|
|
|
"""
|
|
from sqlalchemy.testing import provision
|
|
import logging
|
|
import sys
|
|
|
|
logging.basicConfig()
|
|
logging.getLogger(provision.__name__).setLevel(logging.INFO)
|
|
|
|
provision.reap_dbs(sys.argv[1])
|
|
|
|
|