1"""Drop Oracle, SQL Server databases that are left over from a
2multiprocessing test run.
3
4Currently the cx_Oracle driver seems to sometimes not release a
5TCP connection even if close() is called, which prevents the provisioning
6system from dropping a database in-process.
7
8For SQL Server, databases still remain in use after tests run and
9running a kill of all detected sessions does not seem to release the
10database in process.
11
12"""
13import logging
14import sys
15
16from sqlalchemy.testing import provision
17
18
19logging.basicConfig()
20logging.getLogger(provision.__name__).setLevel(logging.INFO)
21
22provision.reap_dbs(sys.argv[1])
23