From bc5a5a63f229ad629f6600677d102cde4d262308 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 27 May 2013 14:04:53 -0700 Subject: [PATCH] use __dict__ not func_dict for Python 3 compatibility --- _pytest/mark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/mark.py b/_pytest/mark.py index eda74bff5..9961f9d0e 100644 --- a/_pytest/mark.py +++ b/_pytest/mark.py @@ -138,7 +138,7 @@ def matchkeyword(colitem, keywordexpr): mapped_names.add(name) # Add the names attached to the current function through direct assignment - for name in colitem.function.func_dict: + for name in colitem.function.__dict__: mapped_names.add(name) return eval(keywordexpr, {}, KeywordMapping(mapped_names))