diff --git a/test_extclass.py b/test_extclass.py index d9194ffe..4531b405 100644 --- a/test_extclass.py +++ b/test_extclass.py @@ -1,4 +1,5 @@ -r'''// (C) Copyright David Abrahams 2000. Permission to copy, use, modify, sell and +r''' +// (C) Copyright David Abrahams 2000. Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. @@ -966,6 +967,11 @@ test inheritB2 TypeError: bad operand type(s) for pow() Test operator export to a subclass + + # force method table sharing + >>> class IntDerived1(Int): pass + ... + >>> class IntDerived(Int): ... def __init__(self, i): ... Int.__init__(self, i)