diff --git a/Lib/test/libregrtest/results.py b/Lib/test/libregrtest/results.py index d215a243393d5a..71aaef3ae9ae61 100644 --- a/Lib/test/libregrtest/results.py +++ b/Lib/test/libregrtest/results.py @@ -130,7 +130,7 @@ def accumulate_result(self, result: TestResult, runtests: RunTests): self.add_junit(xml_data) def get_coverage_results(self) -> trace.CoverageResults: - counts = {loc: 1 for loc in frozenset(self. covered_lines)} + counts = {loc: 1 for loc in self.covered_lines} return trace.CoverageResults(counts=counts) def need_rerun(self):