]> granicus.if.org Git - python/commitdiff
Add test for SF bug # 575229, multiple inheritance w/ slots dumps core
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 13 Aug 2002 17:16:49 +0000 (17:16 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 13 Aug 2002 17:16:49 +0000 (17:16 +0000)
Fix already checked in by Guido

Lib/test/test_descr.py

index 1ce08b7fa8b40aaa03e15d9e4a85377aae5b6143..bccc912aad9a5e463d90a21136bd45d673c812e2 100644 (file)
@@ -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"