From ce146f66663b0e3f6b41af985f06703c436a390d Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Mon, 6 Nov 2017 00:52:36 +0530 Subject: [PATCH] tests: don't check the actual sequence in test --- tests/functional/test_no_color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/test_no_color.py b/tests/functional/test_no_color.py index e2fbcc9efb5..5977046bf0a 100644 --- a/tests/functional/test_no_color.py +++ b/tests/functional/test_no_color.py @@ -26,7 +26,7 @@ def test_no_color(script): stdout=sp.PIPE, stderr=sp.PIPE).communicate() with open("/tmp/colored-output.txt", "r") as result: - assert "\x1b[31m" in result.read() + assert "\x1b" in result.read() os.unlink("/tmp/colored-output.txt") @@ -36,6 +36,6 @@ def test_no_color(script): stdout=sp.PIPE, stderr=sp.PIPE).communicate() with open("/tmp/no-color-output.txt", "r") as result: - assert "\x1b[31m" not in result.read() + assert "\x1b" not in result.read() os.unlink("/tmp/no-color-output.txt")