mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-14 08:56:00 +00:00
Test fixes
This commit is contained in:
@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env python3 -O
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# requirement: pip install pyperf
|
||||
|
||||
import importlib
|
||||
|
||||
from test.conf_test import conf, glob
|
||||
from benchmarks.setup_db import init_db, end_db
|
||||
|
||||
module= glob();
|
||||
dbdrv = importlib.import_module(module["module"])
|
||||
|
||||
def main():
|
||||
default_conf = conf()
|
||||
conn = dbdrv.connect(**default_conf)
|
||||
init_db(conn)
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user