Skip to content

Commit

Permalink
replace "terminalreporter.writer" with "terminalreporter"
Browse files Browse the repository at this point in the history
replace "terminalreporter.writer" with "terminalreporter" per pytest deprecation guidance: https://docs.pytest.org/en/7.1.x/deprecations.html#terminalreporter-writer
  • Loading branch information
tomkinsc committed Oct 26, 2023
1 parent ff6bd51 commit 77a5b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def pytest_terminal_summary(self, terminalreporter, exitstatus):
if self.durations is None:
return

writer = terminalreporter.writer
writer = terminalreporter

slowest = sorted(self.stats.items(), key=operator.itemgetter(1), reverse=True)
if not self.durations:
Expand Down

0 comments on commit 77a5b36

Please sign in to comment.