Test colors only if they are supported.

This commit is contained in:
Andris Raugulis 2016-10-25 11:57:13 +03:00
parent 182467e0e8
commit 66bd6c3ef0

View File

@ -62,6 +62,8 @@ class TestOutput(object):
output_spy.begin()
out.fail('fail color')
assert output_spy.flush() == [u'fail color']
if not out.colors_supported:
return
# test with colors
out.colors = True
output_spy.begin()