From d90922d4afbc751b629c3cdf614d273eb143ced4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 3 Mar 2024 22:40:53 -0500 Subject: [PATCH] block pytest 8 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 | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_command.py b/tests/test_command.py index c665f955..2dfe6697 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -65,6 +65,7 @@ def teardown_class(cls): 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 3b4c1ff7..76de26a0 100644 --- 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