test fixes

This commit is contained in:
Will McGugan 2020-10-10 15:13:51 +01:00
parent dd5ff93fe9
commit 44afdff523
3 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ class Console:
Returns:
str: Console output.
"""
render_result = self._render_buffer()
render_result = self._render_buffer(self._buffer)
del self._buffer[:]
self._exit_buffer()
return render_result

View File

@ -14,7 +14,7 @@ class Pager(ABC):
"""
class SystemPager:
class SystemPager(Pager):
"""Uses the pager installed on the system."""
def show(self, content: str) -> None:

View File

@ -312,7 +312,7 @@ class Segment(NamedTuple):
yield segment
else:
text, style, _is_control = segment
yield cls(text, style.copy(link=None))
yield cls(text, style.copy(link=None) if style else None)
@classmethod
def strip_styles(cls, segments: Iterable["Segment"]) -> Iterable["Segment"]: