We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4fcc0 commit 52cda14Copy full SHA for 52cda14
Lib/test/test_weakref.py
@@ -406,6 +406,9 @@ def __iter__(self):
406
obj = MyObj()
407
p = weakref.proxy(obj)
408
with self.assertRaises(TypeError):
409
+ # "blech" in p calls MyObj.__iter__ through the proxy,
410
+ # without keeping a reference to the real object, so it
411
+ # can be killed in the middle of the call
412
"blech" in p
413
414
def test_getweakrefcount(self):
0 commit comments