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

Function requires_debug_ranges

Lib/test/support/__init__.py:569–575  ·  view source on GitHub ↗
(reason='requires co_positions / debug_ranges')

Source from the content-addressed store, hash-verified

567 return not _testcapi.config_get('code_debug_ranges')
568
569def requires_debug_ranges(reason='requires co_positions / debug_ranges'):
570 try:
571 skip = has_no_debug_ranges()
572 except unittest.SkipTest as e:
573 skip = True
574 reason = e.args[0] if e.args else reason
575 return unittest.skipIf(skip, reason)
576
577
578MS_WINDOWS = (sys.platform == 'win32')

Callers

nothing calls this directly

Calls 1

has_no_debug_rangesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…