From: Shamil Date: Fri, 18 Apr 2025 10:41:26 +0000 (+0300) Subject: refactor: remove unused variable in pytest plugin X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3ac01adf3ac5e4e1a8fd38f4d0aeecf83ffe4d2;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git refactor: remove unused variable in pytest plugin Removed the `add_markers` variable, as it was declared but never used. This cleanup helps reduce code clutter and improves readability. --- diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index aa531776f8..79d14458ca 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -270,7 +270,6 @@ def pytest_collection_modifyitems(session, config, items): for test_class in test_classes: # transfer legacy __backend__ and __sparse_backend__ symbols # to be markers - add_markers = set() if getattr(test_class.cls, "__backend__", False) or getattr( test_class.cls, "__only_on__", False ):