mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +01:00
Test colors only if they are supported.
This commit is contained in:
parent
182467e0e8
commit
66bd6c3ef0
@ -62,6 +62,8 @@ class TestOutput(object):
|
|||||||
output_spy.begin()
|
output_spy.begin()
|
||||||
out.fail('fail color')
|
out.fail('fail color')
|
||||||
assert output_spy.flush() == [u'fail color']
|
assert output_spy.flush() == [u'fail color']
|
||||||
|
if not out.colors_supported:
|
||||||
|
return
|
||||||
# test with colors
|
# test with colors
|
||||||
out.colors = True
|
out.colors = True
|
||||||
output_spy.begin()
|
output_spy.begin()
|
||||||
|
Loading…
Reference in New Issue
Block a user