mirror of https://github.com/python/cpython
This got fixed in r60056.
This commit is contained in:
parent
03706d2db0
commit
5f4fc831ad
|
@ -1,17 +0,0 @@
|
|||
import weakref
|
||||
|
||||
# http://python.org/sf/1377858
|
||||
# Fixed for new-style classes in 2.5c1.
|
||||
|
||||
ref = None
|
||||
|
||||
def test_weakref_in_del():
|
||||
class Target():
|
||||
def __del__(self):
|
||||
global ref
|
||||
ref = weakref.ref(self)
|
||||
|
||||
w = Target()
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_weakref_in_del()
|
Loading…
Reference in New Issue