diff options
Diffstat (limited to 'test/sql/test_insert.py')
| -rw-r--r-- | test/sql/test_insert.py | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/test/sql/test_insert.py b/test/sql/test_insert.py index 395fe16d3..ac9ac4022 100644 --- a/test/sql/test_insert.py +++ b/test/sql/test_insert.py @@ -1,4 +1,3 @@ -#! coding:utf-8 from __future__ import annotations from typing import Tuple @@ -1609,14 +1608,12 @@ class MultirowTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL): stmt = table.insert().values(values) eq_( - dict( - [ - (k, v.type._type_affinity) - for (k, v) in stmt.compile( - dialect=postgresql.dialect() - ).binds.items() - ] - ), + { + k: v.type._type_affinity + for (k, v) in stmt.compile( + dialect=postgresql.dialect() + ).binds.items() + }, { "foo": Integer, "data_m2": String, @@ -1757,14 +1754,12 @@ class MultirowTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL): stmt = table.insert().values(values) eq_( - dict( - [ - (k, v.type._type_affinity) - for (k, v) in stmt.compile( - dialect=postgresql.dialect() - ).binds.items() - ] - ), + { + k: v.type._type_affinity + for (k, v) in stmt.compile( + dialect=postgresql.dialect() + ).binds.items() + }, { "foo": Integer, "data_m2": String, |
