()
| 92 | |
| 93 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |
| 94 | def test_lambda_closure_cleanup(): |
| 95 | m.test_lambda_closure_cleanup() |
| 96 | cstats = m.payload_cstats() |
| 97 | assert cstats.alive() == 0 |
| 98 | assert cstats.copy_constructions == 1 |
| 99 | assert cstats.move_constructions >= 1 |
| 100 | |
| 101 | |
| 102 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |