From a6465fa3e5e89b17aeae44dd4b3378f0aade4a29 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 12 Feb 2019 11:30:37 +0100 Subject: [PATCH] Make unittest output less distracting That blinking really catches my eye every time, quite distracting. Also limit output to a single line. --- test/test_text_helpers.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_text_helpers.py b/test/test_text_helpers.py index adc3daa..f341aad 100644 --- a/test/test_text_helpers.py +++ b/test/test_text_helpers.py @@ -39,9 +39,10 @@ class TextHelpersTester(unittest.TestCase): """ tests whether color functions do not raise errors """ for color in COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, \ COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE: - exec('{0}("{0}")'.format(color)) - for style in 'normal', 'bold', 'underline', 'blink', 'reverse': - exec('{0}("{0}")'.format(style)) + exec('{0}("{0}", end=", ")'.format(color)) + for style in 'normal', 'bold', 'underline', 'reverse': + exec('{0}("{0}", end=", ")'.format(style)) + # leave out style 'blink' since it is just too distracting def test_shortening(self): """ test function head_and_tail """ -- 1.7.1