From bec6ee5c29f0dd6aedf943629d71b323ea97440a Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Fri, 6 Dec 2013 11:58:04 -0800 Subject: [PATCH] Assert 'test session starts' in output for test_color_{yes,no} --HG-- branch : color_option --- testing/test_terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index 863b549e2..a638d7d76 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -501,13 +501,13 @@ def test_fail_reporting_on_pass(testdir): def test_color_yes(testdir, monkeypatch): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest('--color=yes') - assert 'short test summary' not in result.stdout.str() + assert 'test session starts' in result.stdout.str() assert u'\x1b[1m' in result.stdout.str() def test_color_no(testdir): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest('--color=no') - assert 'short test summary' not in result.stdout.str() + assert 'test session starts' in result.stdout.str() assert u'\x1b[1m' not in result.stdout.str() def test_getreportopt():