From 8ee0c69fe28517bd620733477d049a9c973a64e5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Nov 2010 21:44:37 +0100 Subject: [PATCH] test cleanup --- tests/run/metaclass.pyx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 -- 2.26.2