summaryrefslogtreecommitdiff
path: root/test/sql/test_constraints.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-11-03 20:52:21 +0100
committerFederico Caselli <cfederico87@gmail.com>2022-11-16 23:03:04 +0100
commit4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66 (patch)
tree4970cff3f78489a4a0066cd27fd4bae682402957 /test/sql/test_constraints.py
parent3fc6c40ea77c971d3067dab0fdf57a5b5313b69b (diff)
downloadsqlalchemy-4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66.tar.gz
Try running pyupgrade on the code
command run is "pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format <files...>" pyupgrade will change assert_ to assertTrue. That was reverted since assertTrue does not exists in sqlalchemy fixtures Change-Id: Ie1ed2675c7b11d893d78e028aad0d1576baebb55
Diffstat (limited to 'test/sql/test_constraints.py')
-rw-r--r--test/sql/test_constraints.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/sql/test_constraints.py b/test/sql/test_constraints.py
index b1b731d66..dbdab3307 100644
--- a/test/sql/test_constraints.py
+++ b/test/sql/test_constraints.py
@@ -705,15 +705,13 @@ class ConstraintGenTest(fixtures.TestBase, AssertsExecutionResults):
Index("idx_winners", events.c.winner)
eq_(
- set(ix.name for ix in events.indexes),
- set(
- [
- "ix_events_name",
- "ix_events_location",
- "sport_announcer",
- "idx_winners",
- ]
- ),
+ {ix.name for ix in events.indexes},
+ {
+ "ix_events_name",
+ "ix_events_location",
+ "sport_announcer",
+ "idx_winners",
+ },
)
self.assert_sql_execution(