Skip to content

Commit

Permalink
pytestplugin/hooks: drop setting of unused variable from pytest_colle…
Browse files Browse the repository at this point in the history
…ction_modifyitems

have_feature is set a few lines below without consideration of its
previous value, so drop this statement.

Signed-off-by: Bastian Krause <[email protected]>
  • Loading branch information
Bastian-Krause committed Oct 29, 2021
1 parent 3fe80b0 commit f465656
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion labgrid/pytestplugin/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def pytest_configure(config):
def pytest_collection_modifyitems(config, items):
"""This function matches function feature flags with those found in the
environment and disables the item if no match is found"""
have_feature = []
env = config._labgrid_env

if not env:
Expand Down

0 comments on commit f465656

Please sign in to comment.