From 08a572086bd0f67a9fe45d0b073f1c1db6a17038 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 16 Sep 2015 11:02:36 -0400 Subject: [PATCH] Fix lookup of special values --- _pytest/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_pytest/python.py b/_pytest/python.py index ce3ae471f..ddd9d78e6 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -38,7 +38,8 @@ if hasattr(inspect, 'signature'): sig = inspect.signature(func) params = list(sig.parameters.values()) if params: - return params[0].kind in (sig.POSITIONAL_ONLY, sig.POSITIONAL_OR_KEYWORD) + return params[0].kind in (params[0].POSITIONAL_ONLY, + params[0].POSITIONAL_OR_KEYWORD) else: return False