MCPcopy Index your code
hub / github.com/python/cpython / expected_traceback

Function expected_traceback

Lib/test/test_faulthandler.py:36–43  ·  view source on GitHub ↗
(lineno1, lineno2, header, min_count=1)

Source from the content-addressed store, hash-verified

34
35
36def expected_traceback(lineno1, lineno2, header, min_count=1):
37 regex = header
38 regex += ' File "<string>", line %s in func\n' % lineno1
39 regex += ' File "<string>", line %s in <module>' % lineno2
40 if 1 < min_count:
41 return '^' + (regex + '\n') * (min_count - 1) + regex
42 else:
43 return '^' + regex + '$'
44
45def skip_segfault_on_android(test):
46 # gh-76319: Raising SIGSEGV on Android may not cause a crash.

Callers 2

check_registerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…