Skip to content

Commit

Permalink
Simplify get_coverage_results
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Nov 6, 2023
1 parent bf65fbe commit 1adbf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1adbf57

Please sign in to comment.