Skip to content

Commit ce535f3

Browse files
c0llab0rat0rntninja
authored andcommitted
Reformat coveragerc.file.writelines in run-tests.py
1 parent 6e6e3ae commit ce535f3

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

test/run-tests.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,21 @@ def pytest_pyfunc_call(self, pyfuncitem):
173173
exclusions.append(r"\# pragma: http-backend=httpx")
174174

175175
# Create temporary file with extended *coverage.py* configuration data
176-
coveragerc.file.writelines(map(lambda s: s + "\n", itertools.chain((
177-
"[run]",
178-
"omit =",
179-
), map(lambda s: "\t" + s, omitted_files),
180-
(
181-
"[report]",
182-
"# Exclude lines specific to some other Python version from coverage",
183-
"exclude_lines =",
184-
), map(lambda s: "\t" + s, exclusions))))
176+
coveragerc.file.writelines(
177+
map(
178+
lambda s: s + "\n",
179+
itertools.chain(
180+
(
181+
"[run]",
182+
"omit =",
183+
),
184+
map(lambda s: "\t" + s, omitted_files),
185+
(
186+
"[report]",
187+
"# Exclude lines specific to some other Python version from coverage",
188+
"exclude_lines =",
189+
),
190+
map(lambda s: "\t" + s, exclusions))))
185191
coveragerc.file.flush()
186192

187193
coverage_args = [

0 commit comments

Comments
 (0)