From 4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Thu, 3 Nov 2022 20:52:21 +0100 Subject: Try running pyupgrade on the code command run is "pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format " pyupgrade will change assert_ to assertTrue. That was reverted since assertTrue does not exists in sqlalchemy fixtures Change-Id: Ie1ed2675c7b11d893d78e028aad0d1576baebb55 --- test/sql/test_defaults.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/sql/test_defaults.py') diff --git a/test/sql/test_defaults.py b/test/sql/test_defaults.py index 1249529f3..cc7daf401 100644 --- a/test/sql/test_defaults.py +++ b/test/sql/test_defaults.py @@ -552,14 +552,14 @@ class DefaultRoundTripTest(fixtures.TablesTest): assert r.lastrow_has_defaults() eq_( set(r.context.postfetch_cols), - set([t.c.col3, t.c.col5, t.c.col4, t.c.col6]), + {t.c.col3, t.c.col5, t.c.col4, t.c.col6}, ) r = connection.execute(t.insert().inline()) assert r.lastrow_has_defaults() eq_( set(r.context.postfetch_cols), - set([t.c.col3, t.c.col5, t.c.col4, t.c.col6]), + {t.c.col3, t.c.col5, t.c.col4, t.c.col6}, ) connection.execute(t.insert()) @@ -599,7 +599,7 @@ class DefaultRoundTripTest(fixtures.TablesTest): eq_( set(r.context.postfetch_cols), - set([t.c.col3, t.c.col5, t.c.col4, t.c.col6]), + {t.c.col3, t.c.col5, t.c.col4, t.c.col6}, ) eq_( -- cgit v1.2.1