diff options
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/pytestplugin.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_dialect.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_reflection.py | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/testing/util.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index 02cb0ac32..8679a9f12 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -647,7 +647,7 @@ class PytestFixtureFunctions(plugin_base.FixtureFunctions): idx for idx, char in enumerate(id_) if char in ("n", "r", "s", "a") - ] + ], ) fns = [ (operator.itemgetter(idx), _combination_id_fns[char]) diff --git a/lib/sqlalchemy/testing/suite/test_dialect.py b/lib/sqlalchemy/testing/suite/test_dialect.py index daaea085d..aeb1991d1 100644 --- a/lib/sqlalchemy/testing/suite/test_dialect.py +++ b/lib/sqlalchemy/testing/suite/test_dialect.py @@ -70,7 +70,7 @@ class ExceptionTest(fixtures.TablesTest): # there's no way to make this happen with some drivers like # mysqlclient, pymysql. this at least does produce a non- # ascii error message for cx_oracle, psycopg2 - conn.execute(select(literal_column(u"méil"))) + conn.execute(select(literal_column("méil"))) assert False except exc.DBAPIError as err: err_str = str(err) diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index 9287f76de..6f02d5557 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -495,7 +495,7 @@ class ComponentReflectionTest(fixtures.TablesTest): # https://www.arbinada.com/en/node/1645 sa.UniqueConstraint("name", name="user_tmp_uq_%s" % config.ident), sa.Index("user_tmp_ix", "foo"), - **kw + **kw, ) if ( testing.requires.view_reflection.enabled @@ -1286,7 +1286,7 @@ class ComponentReflectionTestExtra(fixtures.TestBase): t = Table( "t", metadata, - *[Column("t%d" % i, type_) for i, type_ in enumerate(types)] + *[Column("t%d" % i, type_) for i, type_ in enumerate(types)], ) t.create(connection) diff --git a/lib/sqlalchemy/testing/util.py b/lib/sqlalchemy/testing/util.py index 982e57517..8cb92e808 100644 --- a/lib/sqlalchemy/testing/util.py +++ b/lib/sqlalchemy/testing/util.py @@ -275,7 +275,7 @@ def flag_combinations(*combinations): for d in combinations ], id_="i" + ("a" * len(keys)), - argnames=",".join(keys) + argnames=",".join(keys), ) |