]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use @classmethod per pytest guidance
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 Jun 2026 15:36:02 +0000 (11:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 Jun 2026 19:01:07 +0000 (15:01 -0400)
commit3213f9428bef89a41e4aba0c842b93cfbd9f2272
tree4bb4b880e094c2009fe11d27025a5b8d2fb32027
parentddf3b6589fd6ccb2affbaea5d4f400a8c1ad02d8
use @classmethod per pytest guidance

Fixed class-scoped pytest fixtures that were defined as instance methods
using ``self``, which is deprecated as of pytest 9.1 and will be removed in
pytest 10. Fixtures are now decorated with a compatibility ``@classmethod``
decorator and use ``cls`` as the first parameter.

Fixes: #13392
Change-Id: I866de54e22569c9d55eb97dce165670994ec4a57
doc/build/changelog/unreleased_20/13392.rst [new file with mode: 0644]
lib/sqlalchemy/testing/fixtures/mypy.py
lib/sqlalchemy/testing/fixtures/orm.py
lib/sqlalchemy/testing/fixtures/sql.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
test/aaa_profiling/test_misc.py
test/ext/test_mutable.py