(self)
| 291 | |
| 292 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 293 | def test_proxy_reuse(self): |
| 294 | o = C() |
| 295 | proxy1 = weakref.proxy(o) |
| 296 | ref = weakref.ref(o) |
| 297 | proxy2 = weakref.proxy(o) |
| 298 | self.assertIs(proxy1, proxy2, |
| 299 | "proxy object w/out callback should have been re-used") |
| 300 | |
| 301 | def test_basic_proxy(self): |
| 302 | o = C() |