From: Mike Bayer Date: Thu, 3 Mar 2016 15:49:27 +0000 (-0500) Subject: - humor me. why are we squashing all mysql DROP DB exceptions? X-Git-Tag: rel_0_8_5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a353b66859aadc625798dfb50d1a3d36f8577d1;p=thirdparty%2Fsqlalchemy%2Falembic.git - humor me. why are we squashing all mysql DROP DB exceptions? --- 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")