MCPcopy Index your code
hub / github.com/RustPython/RustPython / requires_debug_ranges

Function requires_debug_ranges

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

has_no_debug_rangesFunction · 0.85

Tested by

no test coverage detected