]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
refactor: remove unused variable in pytest plugin
authorShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 10:41:26 +0000 (13:41 +0300)
committerShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 10:41:26 +0000 (13:41 +0300)
Removed the `add_markers` variable, as it was declared but never used.
This cleanup helps reduce code clutter and improves readability.

lib/sqlalchemy/testing/plugin/pytestplugin.py

index aa531776f805204ee8e6011890f6fd77ac196a21..79d14458ca89a52ad2bde0feeac95779eecb79e9 100644 (file)
@@ -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
             ):