def test_color_yes(testdir):
    testdir.makepyfile("def test_this(): assert 1")
    result = testdir.runpytest('--color=yes')
    assert 'test session starts' in result.stdout.str()
    assert '\x1b[1m' in result.stdout.str()
dataset/ETHPy150Open pytest-dev/pytest/testing/test_terminal.py/test_color_yes/original