Skip to content

Commit 52cda14

Browse files
committed
Add comment to the test
1 parent 7f4fcc0 commit 52cda14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_weakref.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ def __iter__(self):
406406
obj = MyObj()
407407
p = weakref.proxy(obj)
408408
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
409412
"blech" in p
410413

411414
def test_getweakrefcount(self):

0 commit comments

Comments
 (0)