def __init__(db, dbtype):
pytest.importorskip(dbtype)
import tempfile
db.installation_dir = py.path.local(tempfile.mkdtemp(prefix='abe-test-'))
print("Created temporary directory %s" % db.installation_dir)
try:
db.server = db.install_server()
except Exception as e:
#print("EXCEPTION %s" % e)
db._delete_tmpdir()
pytest.skip(e)
raise
DB.__init__(db, dbtype, db.get_connect_args())
评论列表
文章目录