Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ create_and_destroy
Function
create_and_destroy
tests/test_factory_constructors.py:348–352 ·
view source on GitHub ↗
(*args)
Source
from the content-addressed store, hash-verified
346
347
348
def
create_and_destroy(*args):
349
a = m.NoisyAlloc(*args)
350
print(
"---"
)
351
del a
352
pytest.gc_collect()
353
354
355
def
strip_comments(s):
Callers
7
test_reallocation_a
Function · 0.85
test_reallocation_b
Function · 0.85
test_reallocation_c
Function · 0.85
test_reallocation_d
Function · 0.85
test_reallocation_e
Function · 0.85
test_reallocation_f
Function · 0.85
test_reallocation_g
Function · 0.85
Calls
2
print
Function · 0.85
NoisyAlloc
Method · 0.80
Tested by
no test coverage detected