()
| 266 | |
| 267 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |
| 268 | def test_move_only_holder(): |
| 269 | a = m.TypeWithMoveOnlyHolder.make() |
| 270 | b = m.TypeWithMoveOnlyHolder.make_as_object() |
| 271 | stats = ConstructorStats.get(m.TypeWithMoveOnlyHolder) |
| 272 | assert stats.alive() == 2 |
| 273 | del b |
| 274 | assert stats.alive() == 1 |
| 275 | del a |
| 276 | assert stats.alive() == 0 |
| 277 | |
| 278 | |
| 279 | @pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC") |