Ignore unreachable code in test environment, we have now 99% of coverage

This commit is contained in:
Yohann D'ANELLO
2020-11-10 21:32:42 +01:00
parent 7173d13495
commit 3416ce2ac3
3 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,8 @@ class DisplayManager:
If the window got resized, ensure that the screen size got updated.
"""
y, x = self.screen.getmaxyx() if self.screen else (0, 0)
if self.screen and curses.is_term_resized(self.rows, self.cols):
if self.screen and curses.is_term_resized(self.rows,
self.cols): # pragma: nocover
curses.resizeterm(y, x)
return True
return False