forked from VimPlug/jedi
some method decorator tests were wrong (incomplete)
This commit is contained in:
@@ -101,15 +101,17 @@ def nothing(a,b,c):
|
|||||||
class MethodDecoratorAsClass():
|
class MethodDecoratorAsClass():
|
||||||
class_var = 3
|
class_var = 3
|
||||||
@Decorator
|
@Decorator
|
||||||
def func_without_self(arg):
|
def func_without_self(arg, arg2):
|
||||||
return arg
|
return arg, arg2
|
||||||
|
|
||||||
@Decorator
|
@Decorator
|
||||||
def func_with_self(self, arg):
|
def func_with_self(self, arg):
|
||||||
return self.class_var
|
return self.class_var
|
||||||
|
|
||||||
#? int()
|
#? int()
|
||||||
MethodDecoratorAsClass().func_without_self(1)
|
MethodDecoratorAsClass().func_without_self('')[0]
|
||||||
|
#? str()
|
||||||
|
MethodDecoratorAsClass().func_without_self('')[1]
|
||||||
#?
|
#?
|
||||||
MethodDecoratorAsClass().func_with_self(1)
|
MethodDecoratorAsClass().func_with_self(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user