1
0
forked from VimPlug/jedi

move decorator tests

This commit is contained in:
David Halter
2012-06-27 10:24:31 +02:00
parent 2ce3869ab8
commit 56a14c7811
4 changed files with 70 additions and 95 deletions

View File

@@ -151,31 +151,6 @@ CallClass()()
# properties
# -----------------
class B():
@property
def r(self):
@@ -197,27 +172,6 @@ B().p
##? []
B().p()
property2 = property
# -----------------
# class decorators
# -----------------
class Decorator(object):
def __init__(self, func):
self.func = func
def __call__(self, *args, **kwargs):
return self.func(1, *args, **kwargs)
@Decorator
def nothing(a,b,c):
return a,b,c
#? int()
nothing("")[0]
#? str()
nothing("")[1]
# -----------------
# variable assignments
# -----------------