Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 29, 2023
1 parent 4269fc1 commit d39d43e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/_pytest/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,14 @@ def reorder_items_atscope(
else:
slicing_argkey, _ = argkeys.popitem()
# deque because they'll just be ignored.
unique_matching_items = dict.fromkeys(scoped_items_by_argkey[slicing_argkey])
for i in reversed(unique_matching_items if sys.version_info.minor > 7 else list(unique_matching_items)):
unique_matching_items = dict.fromkeys(
scoped_items_by_argkey[slicing_argkey]
)
for i in reversed(
unique_matching_items
if sys.version_info.minor > 7
else list(unique_matching_items)
):
if i not in items:
continue
fix_cache_order(i, argkeys_cache, items_by_argkey, ignore, scope)
Expand Down

0 comments on commit d39d43e

Please sign in to comment.