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

pypy.interpreter.test.apptest_traceback: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           assert False
E            +  where False = <function can_colorize at 0x0000028c211b96a0>()

..\build\pypy\interpreter\test\apptest_traceback.py:177: AssertionError
builder: pypy-c-jit-win-x86-64 build #2356
test: pypy/interpreter/test/apptest_traceback:test_colors_in_traceback