#187: issue involving std::shared_ptr<> return value policy & garbage collection
()
| 332 | |
| 333 | |
| 334 | def test_shared_ptr_gc(): |
| 335 | """#187: issue involving std::shared_ptr<> return value policy & garbage collection""" |
| 336 | el = m.ElementList() |
| 337 | for i in range(10): |
| 338 | el.add(m.ElementA(i)) |
| 339 | pytest.gc_collect() |
| 340 | for i, v in enumerate(el.get()): |
| 341 | assert i == v.value() |
| 342 | |
| 343 | |
| 344 | def test_private_esft_tolerance(): |