File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,8 @@ def setup_test_db():
77
77
with get_connection (db = "information_schema" ) as conn :
78
78
print ('Creating database %s' % options .database )
79
79
80
- try :
81
- # note: the following query will fail if there is an existing database
82
- conn .query ('CREATE DATABASE %s' % options .database )
83
- except database .MySQLError :
84
- print ("Database %s already exists - since we drop the database at" % options .database )
85
- print ("the end of this script, please specify an un-used database" )
86
- print ("with the --database flag." )
87
- sys .exit (1 )
88
-
80
+ conn .query ('CREATE DATABASE %s' % options .database )
89
81
conn .query ('USE %s' % options .database )
90
-
91
82
conn .query ('CREATE TABLE IF NOT EXISTS %s (id INT AUTO_INCREMENT PRIMARY KEY, val INT)' % TABLE )
92
83
93
84
def warmup ():
You can’t perform that action at this time.
0 commit comments