From: Stefan Behnel Date: Wed, 3 Nov 2010 20:44:37 +0000 (+0100) Subject: test cleanup X-Git-Tag: 0.14.alpha0~235 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ee0c69fe28517bd620733477d049a9c973a64e5;p=cython.git test cleanup --- diff --git a/tests/run/metaclass.pyx b/tests/run/metaclass.pyx index 78b3e40b..56870382 100644 --- a/tests/run/metaclass.pyx +++ b/tests/run/metaclass.pyx @@ -1,12 +1,13 @@ -""" ->>> obj = Foo() ->>> obj.metaclass_was_here -True -""" + class Base(type): def __new__(cls, name, bases, attrs): attrs['metaclass_was_here'] = True return type.__new__(cls, name, bases, attrs) class Foo(object): + """ + >>> obj = Foo() + >>> obj.metaclass_was_here + True + """ __metaclass__ = Base