From: Mike Bayer Date: Mon, 6 Oct 2025 20:34:35 +0000 (-0400) Subject: fix dropping of version tables in test X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af6cb70f30d9ad6e4c62e4d56fbe53bcf6a1d677;p=thirdparty%2Fsqlalchemy%2Falembic.git fix dropping of version tables in test Change-Id: I438fbe6ac41d0b4e5997fd1a7455cf4127aa1e19 --- diff --git a/tests/test_version_table.py b/tests/test_version_table.py index ca569366..8964022c 100644 --- a/tests/test_version_table.py +++ b/tests/test_version_table.py @@ -23,6 +23,7 @@ version_table = Table( MetaData(), Column("version_num", String(32), nullable=False), ) +alembic_version_table = Table("alembic_version", MetaData()) def _up(from_, to_, branch_presence_changed=False): @@ -46,6 +47,7 @@ class TestMigrationContext(TestBase): self.transaction.rollback() with self.connection.begin(): version_table.drop(self.connection, checkfirst=True) + alembic_version_table.drop(self.connection, checkfirst=True) self.connection.close() def make_one(self, **kwargs):