============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-colorclass/src/colorclass-2.2.0 collected 146 items tests/test___main__.py .......... [ 6%] tests/test_codes.py ....... [ 11%] tests/test_color.py ........ [ 17%] tests/test_core.py ................................ [ 39%] tests/test_example.py FFFFFFFFFssss [ 47%] tests/test_parse.py ......................................... [ 76%] tests/test_search.py ............... [ 86%] tests/test_toggles.py .. [ 87%] tests/test_windows.py s...............ss [100%] =================================== FAILURES =================================== ____________________________ test_piped[True-True] _____________________________ colors = True, light_bg = True @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[True-False] ____________________________ colors = False, light_bg = True @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[True-None] _____________________________ colors = None, light_bg = True @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[False-True] ____________________________ colors = True, light_bg = False @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ___________________________ test_piped[False-False] ____________________________ colors = False, light_bg = False @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[False-None] ____________________________ colors = None, light_bg = False @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[None-True] _____________________________ colors = True, light_bg = None @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[None-False] ____________________________ colors = False, light_bg = None @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError ____________________________ test_piped[None-None] _____________________________ colors = None, light_bg = None @pytest.mark.parametrize('colors', [True, False, None]) @pytest.mark.parametrize('light_bg', [True, False, None]) def test_piped(colors, light_bg): """Test script with output piped to non-tty (this pytest process). :param bool colors: Enable, disable, or omit color arguments (default is no colors due to no tty). :param bool light_bg: Enable light, dark, or omit light/dark arguments. """ command = [sys.executable, str(PROJECT_ROOT.join('example.py')), 'print'] # Set options. if colors is True: command.append('--colors') elif colors is False: command.append('--no-colors') if light_bg is True: command.append('--light-bg') elif light_bg is False: command.append('--dark-bg') # Run. proc = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) output = proc.communicate()[0].decode() > assert proc.poll() == 0 E AssertionError: assert 1 == 0 E + where 1 = >() E + where > = .poll tests/test_example.py:36: AssertionError =========================== short test summary info ============================ FAILED tests/test_example.py::test_piped[True-True] - AssertionError: assert ... FAILED tests/test_example.py::test_piped[True-False] - AssertionError: assert... FAILED tests/test_example.py::test_piped[True-None] - AssertionError: assert ... FAILED tests/test_example.py::test_piped[False-True] - AssertionError: assert... FAILED tests/test_example.py::test_piped[False-False] - AssertionError: asser... FAILED tests/test_example.py::test_piped[False-None] - AssertionError: assert... FAILED tests/test_example.py::test_piped[None-True] - AssertionError: assert ... FAILED tests/test_example.py::test_piped[None-False] - AssertionError: assert... FAILED tests/test_example.py::test_piped[None-None] - AssertionError: assert ... =================== 9 failed, 130 passed, 7 skipped in 7.01s =================== ==> ERROR: A failure occurred in check().  Aborting...