From 3a353b66859aadc625798dfb50d1a3d36f8577d1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 3 Mar 2016 10:49:27 -0500 Subject: [PATCH] - humor me. why are we squashing all mysql DROP DB exceptions? --- alembic/testing/provision.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/alembic/testing/provision.py b/alembic/testing/provision.py index a6515b5b..9d03fb0e 100644 --- a/alembic/testing/provision.py +++ b/alembic/testing/provision.py @@ -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") -- 2.47.2