From: dzcode <9089037+dzcode@users.noreply.github.com> Date: Tue, 3 May 2022 20:18:43 +0000 (-0600) Subject: Use tuple instead of raw url in string formatting (#7987) X-Git-Tag: rel_1_4_37~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c92d2622d28130a773bc5d27449c8630335bce;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Use tuple instead of raw url in string formatting (#7987) * Fixes: #7902 - Use tuple instead of raw url in string formatting * Fix lint error (cherry picked from commit 675c3e17f7fcccb7534c46adb56529fc3ddd8dbf) --- diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py index a911ba69ce..90c4d93cfc 100644 --- a/lib/sqlalchemy/testing/provision.py +++ b/lib/sqlalchemy/testing/provision.py @@ -287,13 +287,15 @@ def create_db(cfg, eng, ident): Used when a test run will employ multiple processes, e.g., when run via `tox` or `pytest -n4`. """ - raise NotImplementedError("no DB creation routine for cfg: %s" % eng.url) + raise NotImplementedError( + "no DB creation routine for cfg: %s" % (eng.url,) + ) @register.init def drop_db(cfg, eng, ident): """Drop a database that we dynamically created for testing.""" - raise NotImplementedError("no DB drop routine for cfg: %s" % eng.url) + raise NotImplementedError("no DB drop routine for cfg: %s" % (eng.url,)) @register.init @@ -377,7 +379,7 @@ def temp_table_keyword_args(cfg, eng): ComponentReflectionTest class in suite/test_reflection.py """ raise NotImplementedError( - "no temp table keyword args routine for cfg: %s" % eng.url + "no temp table keyword args routine for cfg: %s" % (eng.url,) )