()
| 64 | |
| 65 | |
| 66 | def test_instance_new(): |
| 67 | instance = m.NoConstructorNew() # .__new__(m.NoConstructor.__class__) |
| 68 | |
| 69 | if env.GRAALPY: |
| 70 | pytest.skip("ConstructorStats is incompatible with GraalPy.") |
| 71 | |
| 72 | cstats = ConstructorStats.get(m.NoConstructorNew) |
| 73 | assert cstats.alive() == 1 |
| 74 | del instance |
| 75 | assert cstats.alive() == 0 |
| 76 | |
| 77 | |
| 78 | def test_pass_unique_ptr(): |
nothing calls this directly
no test coverage detected