diff options
author | dzcode <9089037+dzcode@users.noreply.github.com> | 2022-05-03 14:18:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 22:18:43 +0200 |
commit | 675c3e17f7fcccb7534c46adb56529fc3ddd8dbf (patch) | |
tree | bcc720145df4698e9e4ea64fcbb58aef4a7b9d76 /lib/sqlalchemy | |
parent | f89a202d60215b13e3733a3ea950473962b3cf67 (diff) | |
download | sqlalchemy-675c3e17f7fcccb7534c46adb56529fc3ddd8dbf.tar.gz |
Use tuple instead of raw url in string formatting (#7987)
* Fixes: #7902 - Use tuple instead of raw url in string formatting
* Fix lint error
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/testing/provision.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py index d7f795806..d38437732 100644 --- a/lib/sqlalchemy/testing/provision.py +++ b/lib/sqlalchemy/testing/provision.py @@ -290,13 +290,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 @@ -380,7 +382,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,) ) |