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

Function _check_tracemalloc

Lib/test/support/__init__.py:2066–2077  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2064
2065
2066def _check_tracemalloc():
2067 # Issue #10915, #15751: PyGILState_*() functions don't work with
2068 # sub-interpreters, the tracemalloc module uses these functions internally
2069 try:
2070 import tracemalloc
2071 except ImportError:
2072 pass
2073 else:
2074 if tracemalloc.is_tracing():
2075 raise unittest.SkipTest("run_in_subinterp() cannot be used "
2076 "if tracemalloc module is tracing "
2077 "memory allocations")
2078
2079
2080def check_free_after_iterating(test, iter, cls, args=()):

Callers 2

run_in_subinterpFunction · 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…