From: Mike Bayer Date: Mon, 4 Mar 2024 03:40:53 +0000 (-0500) Subject: block pytest 8 X-Git-Tag: rel_1_13_2~12 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d90922d4afbc751b629c3cdf614d273eb143ced4;p=thirdparty%2Fsqlalchemy%2Falembic.git 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 --- 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 @@ 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 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