From: Neal Norwitz Date: Tue, 13 Aug 2002 17:16:49 +0000 (+0000) Subject: Add test for SF bug # 575229, multiple inheritance w/ slots dumps core X-Git-Tag: v2.3c1~4507 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9dd0f19240b668d41dccdcdeaf8155eb366aeef;p=thirdparty%2FPython%2Fcpython.git Add test for SF bug # 575229, multiple inheritance w/ slots dumps core Fix already checked in by Guido --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 1ce08b7fa8b4..bccc912aad9a 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"