]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
block pytest 8
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Mar 2024 03:40:53 +0000 (22:40 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Mar 2024 03:40:53 +0000 (22:40 -0500)
something has changed and teardown() is no longer called.
SQLAlchemy seems to also be pinned below pytest 8 (which we need to fix)
so this is likely related

Change-Id: I784b3abde67528c30af06a01b3a02d481a29276f

tests/test_command.py
tox.ini

index c665f95556deed81c09b8ff9c405c620191e4f53..2dfe6697e7e7b520c26f8eb7d6d2b6c1905fca2f 100644 (file)
@@ -65,6 +65,7 @@ class HistoryTest(_BufMixin, TestBase):
         clear_staging_env()
 
     def teardown(self):
+        breakpoint()
         self.cfg.set_main_option("revision_environment", "false")
 
     @classmethod
diff --git a/tox.ini b/tox.ini
index 3b4c1ff7768777f50ebe18a2b99629d57e81649d..76de26a01e8c367373cb9069f8ccb3b174c0009e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,7 @@ SQLA_REPO = {env:SQLA_REPO:git+https://github.com/sqlalchemy/sqlalchemy.git}
 [testenv]
 cov_args=--cov=alembic --cov-report term --cov-report xml
 
-deps=pytest>4.6
+deps=pytest>4.6,8
      pytest-xdist
      sqla13: pytest<7
      sqla13: {[tox]SQLA_REPO}@rel_1_3#egg=sqlalchemy