MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_proxy_reuse

Method test_proxy_reuse

Lib/test/test_weakref.py:293–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

proxyMethod · 0.80
CClass · 0.70
assertIsMethod · 0.45

Tested by

no test coverage detected