Skip to content

Commit

Permalink
Reformat coveragerc.file.writelines in run-tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
c0llab0rat0r authored and ntninja committed Apr 5, 2021
1 parent 6e6e3ae commit ce535f3
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions test/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,21 @@ def pytest_pyfunc_call(self, pyfuncitem):
exclusions.append(r"\# pragma: http-backend=httpx")

# Create temporary file with extended *coverage.py* configuration data
coveragerc.file.writelines(map(lambda s: s + "\n", itertools.chain((
"[run]",
"omit =",
), map(lambda s: "\t" + s, omitted_files),
(
"[report]",
"# Exclude lines specific to some other Python version from coverage",
"exclude_lines =",
), map(lambda s: "\t" + s, exclusions))))
coveragerc.file.writelines(
map(
lambda s: s + "\n",
itertools.chain(
(
"[run]",
"omit =",
),
map(lambda s: "\t" + s, omitted_files),
(
"[report]",
"# Exclude lines specific to some other Python version from coverage",
"exclude_lines =",
),
map(lambda s: "\t" + s, exclusions))))
coveragerc.file.flush()

coverage_args = [
Expand Down

0 comments on commit ce535f3

Please sign in to comment.