diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-25 12:29:40 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-26 09:18:00 -0500 |
commit | 3b09a89d95f765399324dd53b4cb8504b0a7903b (patch) | |
tree | dc0837c10c7f0374c14ae4f267598f0060dfaddd /tests/test_postgresql.py | |
parent | fc451e60731ad5b8d73255f0a1996e1d4e0f20de (diff) | |
download | alembic-3b09a89d95f765399324dd53b4cb8504b0a7903b.tar.gz |
run pyupgrade
command is:
find alembic -name "*.py" | xargs pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format
I'm having some weird fighting with the tools/write_pyi, where
in different runtime contexts it keeps losing "MigrationContext"
and also Callable drops the args, but it's not consisistent.
For whatever reason, under py311 things *do* work every time.
im working w/ clean tox environments so not really sure what the
change is. anyway, let's at least fix the quoting up
around the types.
This is towards getting the "*" in the op signatures for #1130.
Change-Id: I9175905d3b4325e03a97d6752356b70be20e9fad
Diffstat (limited to 'tests/test_postgresql.py')
-rw-r--r-- | tests/test_postgresql.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index b9be5cb..6a67e0b 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -838,9 +838,7 @@ class PostgresqlDetectSerialTest(TestBase): insp = inspect(config.db) uo = ops.UpgradeOps(ops=[]) - _compare_tables( - set([(None, "t")]), set([]), insp, uo, self.autogen_context - ) + _compare_tables({(None, "t")}, set(), insp, uo, self.autogen_context) diffs = uo.as_diffs() tab = diffs[0][1] @@ -857,8 +855,8 @@ class PostgresqlDetectSerialTest(TestBase): Table("t", m2, Column("x", BigInteger())) self.autogen_context.metadata = m2 _compare_tables( - set([(None, "t")]), - set([(None, "t")]), + {(None, "t")}, + {(None, "t")}, insp, uo, self.autogen_context, |