projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abfe02
)
test cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 3 Nov 2010 20:44:37 +0000
(21:44 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 3 Nov 2010 20:44:37 +0000
(21:44 +0100)
tests/run/metaclass.pyx
patch
|
blob
|
history
diff --git
a/tests/run/metaclass.pyx
b/tests/run/metaclass.pyx
index 78b3e40bf6a95998aaec73fdba40b5bb71e735f6..5687038216473baf46dd4679d61a62997aabe7a6 100644
(file)
--- 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