MCPcopy Create free account
hub / github.com/catboost/catboost / clean_traceback

Function clean_traceback

library/python/runtime_py3/test/test_traceback.py:9–12  ·  view source on GitHub ↗
(traceback)

Source from the content-addressed store, hash-verified

7
8
9def clean_traceback(traceback):
10 traceback = re.sub(rb"\033\[(\d|;)+?m", b"", traceback) # strip ANSI codes
11 traceback = re.sub(rb" at 0x[0-9a-fA-F]+", b"", traceback) # remove object ids
12 return traceback
13
14
15@pytest.mark.parametrize(

Callers 1

test_tracebackFunction · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected