MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_reallocation_e

Function test_reallocation_e

tests/test_factory_constructors.py:431–443  ·  view source on GitHub ↗
(capture, msg)

Source from the content-addressed store, hash-verified

429
430@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")
431def test_reallocation_e(capture, msg):
432 with capture:
433 create_and_destroy(3.5, 4.5)
434 assert msg(capture) == strip_comments(
435 """
436 noisy new # preallocation needed before invoking placement-new overload
437 noisy placement new # Placement new
438 NoisyAlloc(double 3.5) # construction
439 ---
440 ~NoisyAlloc() # Destructor
441 noisy delete # operator delete
442 """
443 )
444
445
446@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")

Callers

nothing calls this directly

Calls 3

create_and_destroyFunction · 0.85
msgFunction · 0.85
strip_commentsFunction · 0.85

Tested by

no test coverage detected