Skip to content

Commit 6205c9f

Browse files
committed
style: pyupgrade --py38-plus --keep-runtime-typing
1 parent 3b484e7 commit 6205c9f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

coverage/config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ def post_process(self) -> None:
521521
self.data_file = self.post_process_file(self.data_file)
522522
self.html_dir = self.post_process_file(self.html_dir)
523523
self.xml_output = self.post_process_file(self.xml_output)
524-
self.paths = dict(
525-
(k, [self.post_process_file(f) for f in v])
524+
self.paths = {
525+
k: [self.post_process_file(f) for f in v]
526526
for k, v in self.paths.items()
527-
)
527+
}
528528
self.exclude_list += self.exclude_also
529529

530530
def debug_info(self) -> List[Tuple[str, Any]]:

tests/balance_xdist_plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def pytest_xdist_make_scheduler(self, config, log):
117117
clumped = set()
118118
clumps = config.getini("balanced_clumps")
119119
for i, clump_word in enumerate(clumps):
120-
clump_nodes = set(nodeid for nodeid in self.times.keys() if clump_word in nodeid)
120+
clump_nodes = {nodeid for nodeid in self.times.keys() if clump_word in nodeid}
121121
i %= nchunks
122122
tests[i].update(clump_nodes)
123123
totals[i] += sum(self.times[nodeid] for nodeid in clump_nodes)

tests/test_lcov.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_volume(self):
4444

4545
def get_lcov_report_content(self, filename: str = "coverage.lcov") -> str:
4646
"""Return the content of an LCOV report."""
47-
with open(filename, "r") as file:
47+
with open(filename) as file:
4848
return file.read()
4949

5050
def test_lone_file(self) -> None:

0 commit comments

Comments
 (0)