Skip to content

Commit d39d43e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4269fc1 commit d39d43e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/_pytest/fixtures.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,14 @@ def reorder_items_atscope(
405405
else:
406406
slicing_argkey, _ = argkeys.popitem()
407407
# deque because they'll just be ignored.
408-
unique_matching_items = dict.fromkeys(scoped_items_by_argkey[slicing_argkey])
409-
for i in reversed(unique_matching_items if sys.version_info.minor > 7 else list(unique_matching_items)):
408+
unique_matching_items = dict.fromkeys(
409+
scoped_items_by_argkey[slicing_argkey]
410+
)
411+
for i in reversed(
412+
unique_matching_items
413+
if sys.version_info.minor > 7
414+
else list(unique_matching_items)
415+
):
410416
if i not in items:
411417
continue
412418
fix_cache_order(i, argkeys_cache, items_by_argkey, ignore, scope)

0 commit comments

Comments
 (0)