()
| 14 | |
| 15 | |
| 16 | def test_m_clone(): |
| 17 | obj = MyClass() |
| 18 | while True: |
| 19 | obj.set_val(5) |
| 20 | obj = m.clone(obj) |
| 21 | assert obj.get_val() == 5 + 3 |
| 22 | assert obj.foo() == 10 + 5 + 3 |
| 23 | return # Comment out for manual leak checking (use `top` command). |
| 24 | |
| 25 | |
| 26 | def test_m_clone_and_foo(): |