add a test that wasnt working with the old dynamic param lookup.

This commit is contained in:
Dave Halter
2014-11-18 13:08:27 +01:00
parent 93ffc799f5
commit 78b7b8ffaf

View File

@@ -65,6 +65,22 @@ def func(c=1):
func(1.0)
def tricky_decorator(func):
def wrapper(*args):
return func(1, *args)
return wrapper
@tricky_decorator
def func(a, b):
#? int()
a
#? float()
b
func(1.0)
# Needs to be here, because in this case func is an import -> shouldn't lead to
# exceptions.
import sys as func