Skip to content

Commit 2a1fed6

Browse files
tsvikasionelmc
authored andcommitted
made wrote_headings private
1 parent 034faf2 commit 2a1fed6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pytest_cov/plugin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self, options, pluginmanager, start=True, no_cov_should_warn=False)
217217
self._start_path = None
218218
self._disabled = False
219219
self.options = options
220-
self.wrote_heading = False
220+
self._wrote_heading = False
221221

222222
is_dist = getattr(options, 'numprocesses', False) or getattr(options, 'distload', False) or getattr(options, 'dist', 'no') != 'no'
223223
if getattr(options, 'no_cov', False):
@@ -358,9 +358,9 @@ def pytest_runtestloop(self, session):
358358
compat_session.testsfailed += 1
359359

360360
def write_heading(self, terminalreporter):
361-
if not self.wrote_heading:
361+
if not self._wrote_heading:
362362
terminalreporter.write_sep('=', 'tests coverage')
363-
self.wrote_heading = True
363+
self._wrote_heading = True
364364

365365
def pytest_terminal_summary(self, terminalreporter):
366366
if self._disabled:

0 commit comments

Comments
 (0)