Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/interpreter/test/apptest_traceback.py::test_colors_in_traceback

def test_colors_in_traceback():
        import os
        def division_by_zero(a, b):
            return (
                a      + b / 0 # abc
            )
    
        old_value = os.environ.get('FORCE_COLOR', None)
        os.environ['FORCE_COLOR'] = '1'
        try:
            from _colorize import can_colorize, ANSIColors
>           assert can_colorize()
E           (application-level) AssertionError: assert False
E            +  where False = <function can_colorize at 0x000001f5faff36e0>()

interpreter\test\apptest_traceback.py:177: AssertionError
builder: own-win-x86-64 build #2236
test: pypy/interpreter/test/apptest_traceback/py/test_colors_in_traceback