Avoid test runner crash when we have no tty
Change-Id: I6dac94a98b9125d3371c19fa14a0de9b4e766820 Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
parent
86c7694007
commit
84da9d441d
@ -101,7 +101,6 @@ class _AnsiColorizer(object):
|
||||
curses.setupterm()
|
||||
return curses.tigetnum("colors") > 2
|
||||
except Exception:
|
||||
raise
|
||||
# guess false in case of error
|
||||
return False
|
||||
supported = classmethod(supported)
|
||||
|
Loading…
x
Reference in New Issue
Block a user