Skip to content

Commit

Permalink
fixup! use setter for stats, handling main color
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 6, 2020
1 parent 9374e69 commit 307135c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def line(self, msg, **kw):

def _add_stats(self, category: str, items: List) -> None:
if category not in self.stats:
self.stats[category] = items
self.stats[category] = items[:]
self._set_main_color()
else:
self.stats[category].extend(items)
Expand Down

0 comments on commit 307135c

Please sign in to comment.