many new descriptor tests

This commit is contained in:
David Halter
2012-07-17 23:21:33 +02:00
parent 9e585c3ec1
commit d91f13ab9b
2 changed files with 130 additions and 42 deletions

View File

@@ -94,23 +94,6 @@ nothing("")[0]
#? str()
nothing("")[1]
# -----------------
# properties
# -----------------
class PropClass():
def __init__(self, a):
self.a = a
@property
def ret(self):
return self.a
#? str()
PropClass("").ret
#? []
PropClass().ret.
# -----------------
# not found decorators
# -----------------