From 66bd6c3ef02f250279bd1235e98c1acd2dd7bce9 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Tue, 25 Oct 2016 11:57:13 +0300 Subject: [PATCH] Test colors only if they are supported. --- test/test_output.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_output.py b/test/test_output.py index 8ba3645..a50de38 100644 --- a/test/test_output.py +++ b/test/test_output.py @@ -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()