diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index ef4c34ff..91c21de2 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -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):