Skip to content

Commit

Permalink
Simplify failure defuplication in looponfail
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger committed Mar 30, 2022
1 parent 3fc253f commit f51cd65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xdist/looponfail.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,7 @@ def loop_once(self):
if collection_failed:
pass # "Collection failed, keeping previous failure set"
else:
uniq_failures = []
for failure in failures:
if failure not in uniq_failures:
uniq_failures.append(failure)
self.failures = uniq_failures
self.failures = list(set(failures))


def repr_pytest_looponfailinfo(failreports, rootdirs):
Expand Down

0 comments on commit f51cd65

Please sign in to comment.