diff --git a/py/test/plugin/pytest_xfail.py b/py/test/plugin/pytest_xfail.py index 68361b570..18683ac9e 100644 --- a/py/test/plugin/pytest_xfail.py +++ b/py/test/plugin/pytest_xfail.py @@ -22,8 +22,8 @@ import py def pytest_runtest_makereport(__multicall__, item, call): if call.when != "call": return - if hasattr(item, 'obj') and hasattr(item.obj, 'func_dict'): - if 'xfail' in item.obj.func_dict: + if hasattr(item, 'obj') and py.builtin._getfuncdict(item.obj): + if 'xfail' in py.builtin._getfuncdict(item.obj): res = __multicall__.execute() if call.excinfo: res.skipped = True