diff options
| author | jvanasco <jonathan@2xlp.com> | 2014-10-17 19:37:47 -0400 |
|---|---|---|
| committer | jvanasco <jonathan@2xlp.com> | 2014-10-17 19:37:47 -0400 |
| commit | efca4af93603faa7abfeacbab264cad85ee4105c (patch) | |
| tree | c98b87e0a489c668acd119800c8a946dc7fdf9d4 /lib/sqlalchemy/testing/provision.py | |
| parent | 4da020dae324cb871074e302f4840e8731988be0 (diff) | |
| parent | 61a4a89d993eda1d3168b501ba9ed8d94ea9b5f8 (diff) | |
| download | sqlalchemy-efca4af93603faa7abfeacbab264cad85ee4105c.tar.gz | |
Merged zzzeek/sqlalchemy into master
Diffstat (limited to 'lib/sqlalchemy/testing/provision.py')
| -rw-r--r-- | lib/sqlalchemy/testing/provision.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py index 0bcdad959..c8f7fdf30 100644 --- a/lib/sqlalchemy/testing/provision.py +++ b/lib/sqlalchemy/testing/provision.py @@ -120,7 +120,7 @@ def _pg_create_db(cfg, eng, ident): isolation_level="AUTOCOMMIT") as conn: try: _pg_drop_db(cfg, conn, ident) - except: + except Exception: pass currentdb = conn.scalar("select current_database()") conn.execute("CREATE DATABASE %s TEMPLATE %s" % (ident, currentdb)) @@ -131,7 +131,7 @@ def _mysql_create_db(cfg, eng, ident): with eng.connect() as conn: try: _mysql_drop_db(cfg, conn, ident) - except: + except Exception: pass conn.execute("CREATE DATABASE %s" % ident) conn.execute("CREATE DATABASE %s_test_schema" % ident) @@ -173,15 +173,15 @@ def _mysql_drop_db(cfg, eng, ident): with eng.connect() as conn: try: conn.execute("DROP DATABASE %s_test_schema" % ident) - except: + except Exception: pass try: conn.execute("DROP DATABASE %s_test_schema_2" % ident) - except: + except Exception: pass try: conn.execute("DROP DATABASE %s" % ident) - except: + except Exception: pass |
