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 Jun 20, 2020
1 parent 59caed8 commit e8f7d61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xdist/looponfail.py
Expand Up @@ -120,11 +120,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 e8f7d61

Please sign in to comment.