Skip to content

Commit 034faf2

Browse files
tsvikasionelmc
authored andcommitted
convert newlines to conform with the rest of pytest
1 parent 22c4ae5 commit 034faf2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/pytest_cov/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def sep(self, stream, s, txt):
163163
# trailing space is not important at the end of the line.
164164
if len(line) + len(s.rstrip()) <= fullwidth:
165165
line += s.rstrip()
166-
line += '\n'
166+
line += '\n\n'
167167
stream.write(line)
168168

169169
@_ensure_topdir

src/pytest_cov/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,9 @@ def pytest_terminal_summary(self, terminalreporter):
379379

380380
report = self.cov_report.getvalue()
381381

382-
# Avoid undesirable new lines when output is disabled with "--cov-report=".
383382
if report:
384383
self.write_heading(terminalreporter)
385-
terminalreporter.write('\n' + report + '\n')
384+
terminalreporter.write(report)
386385

387386
if self.options.cov_fail_under is not None and self.options.cov_fail_under > 0:
388387
self.write_heading(terminalreporter)

0 commit comments

Comments
 (0)