(capture, msg)
| 413 | |
| 414 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |
| 415 | def test_reallocation_d(capture, msg): |
| 416 | with capture: |
| 417 | create_and_destroy(2.5, 3) |
| 418 | assert msg(capture) == strip_comments( |
| 419 | """ |
| 420 | NoisyAlloc(double 2.5) # construction (local func variable: operator_new not called) |
| 421 | noisy new # return-by-value "new" part 1: allocation |
| 422 | ~NoisyAlloc() # moved-away local func variable destruction |
| 423 | --- |
| 424 | ~NoisyAlloc() # Destructor |
| 425 | noisy delete # operator delete |
| 426 | """ |
| 427 | ) |
| 428 | |
| 429 | |
| 430 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |
nothing calls this directly
no test coverage detected