From 7bff8c6f899e655df31a18874f05951e5e43a2d1 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 6 Oct 2018 16:46:01 +0300 Subject: [PATCH] dagascii: don't try to cover tty code --- dvc/dagascii.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/dagascii.py b/dvc/dagascii.py index 1c827f968..4d6a18b68 100644 --- a/dvc/dagascii.py +++ b/dvc/dagascii.py @@ -21,13 +21,13 @@ class AsciiCanvas(object): self.canvas = [[' '] * cols for l in range(lines)] def draw(self): - if sys.stdout.isatty(): + if sys.stdout.isatty(): # pragma: no cover Screen.wrapper(self._do_draw) else: for line in self.canvas: print(''.join(line)) - def _do_draw(self, screen): + def _do_draw(self, screen): # pragma: no cover offset_x = 0 offset_y = 0 smaxrow, smaxcol = screen.dimensions