Kaydet (Commit) e7f3e24e authored tarafından Guido van Rossum's avatar Guido van Rossum

Test for the bug in recurse_down_subclasses() that I just fixed.

üst 59e6c539
......@@ -2773,6 +2773,16 @@ def subclasspropagation():
else:
raise TestFailed, "d.foo should be undefined now"
# Test a nasty bug in recurse_down_subclasses()
import gc
class A(object):
pass
class B(A):
pass
del B
gc.collect()
A.__setitem__ = lambda *a: None # crash
def buffer_inherit():
import binascii
# SF bug [#470040] ParseTuple t# vs subclasses.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment