diff options
author | Guido van Rossum <guido@python.org> | 2002-06-14 02:35:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-14 02:35:45 (GMT) |
commit | e7f3e24eebd88a563d1dfaf6d6ac38a906abb4cb (patch) | |
tree | da46e8fade29ce9fbd3a27cb2e4d01b897848307 /Lib/test/test_descr.py | |
parent | 59e6c539207346398f02820ed1d80e3245112179 (diff) | |
download | cpython-e7f3e24eebd88a563d1dfaf6d6ac38a906abb4cb.zip cpython-e7f3e24eebd88a563d1dfaf6d6ac38a906abb4cb.tar.gz cpython-e7f3e24eebd88a563d1dfaf6d6ac38a906abb4cb.tar.bz2 |
Test for the bug in recurse_down_subclasses() that I just fixed.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 1168106..852115b 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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. |