diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 17:16:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 17:16:49 (GMT) |
commit | f9dd0f19240b668d41dccdcdeaf8155eb366aeef (patch) | |
tree | 98b38b89ee211ee9d411e4bf105a46ca52491876 /Lib/test | |
parent | a87a521b832c065db4eb53b43eae9f16de8a63ad (diff) | |
download | cpython-f9dd0f19240b668d41dccdcdeaf8155eb366aeef.zip cpython-f9dd0f19240b668d41dccdcdeaf8155eb366aeef.tar.gz cpython-f9dd0f19240b668d41dccdcdeaf8155eb366aeef.tar.bz2 |
Add test for SF bug # 575229, multiple inheritance w/ slots dumps core
Fix already checked in by Guido
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_descr.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 1ce08b7..bccc912 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -3237,6 +3237,16 @@ def slottrash(): o = trash(o) del o +def slotmultipleinheritance(): + # SF bug 575229, multiple inheritance w/ slots dumps core + class A(object): + __slots__=() + class B(object): + pass + class C(A,B) : + __slots__=() + C().x=2 + def testrmul(): # SF patch 592646 if verbose: @@ -3344,6 +3354,7 @@ def test_main(): slices() subtype_resurrection() slottrash() + slotmultipleinheritance() testrmul() if verbose: print "All OK" |