]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- humor me. why are we squashing all mysql DROP DB exceptions?
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Mar 2016 15:49:27 +0000 (10:49 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Mar 2016 15:49:27 +0000 (10:49 -0500)
alembic/testing/provision.py

index a6515b5b9eb94b95232917feb76099c432b2c9ba..9d03fb0e5471ac0ad0a0ac0cbb8265cff97fdaef 100644 (file)
@@ -227,18 +227,9 @@ def _sqlite_drop_db(cfg, eng, ident):
 @_drop_db.for_db("mysql")
 def _mysql_drop_db(cfg, eng, ident):
     with eng.connect() as conn:
-        try:
-            conn.execute("DROP DATABASE %s_test_schema" % ident)
-        except Exception:
-            pass
-        try:
-            conn.execute("DROP DATABASE %s_test_schema_2" % ident)
-        except Exception:
-            pass
-        try:
-            conn.execute("DROP DATABASE %s" % ident)
-        except Exception:
-            pass
+        conn.execute("DROP DATABASE %s_test_schema" % ident)
+        conn.execute("DROP DATABASE %s_test_schema_2" % ident)
+        conn.execute("DROP DATABASE %s" % ident)
 
 
 @_create_db.for_db("oracle")