parent
86da34b874
commit
1c9760d123
|
@ -22,8 +22,8 @@ import py
|
||||||
def pytest_runtest_makereport(__multicall__, item, call):
|
def pytest_runtest_makereport(__multicall__, item, call):
|
||||||
if call.when != "call":
|
if call.when != "call":
|
||||||
return
|
return
|
||||||
if hasattr(item, 'obj') and hasattr(item.obj, 'func_dict'):
|
if hasattr(item, 'obj') and py.builtin._getfuncdict(item.obj):
|
||||||
if 'xfail' in item.obj.func_dict:
|
if 'xfail' in py.builtin._getfuncdict(item.obj):
|
||||||
res = __multicall__.execute()
|
res = __multicall__.execute()
|
||||||
if call.excinfo:
|
if call.excinfo:
|
||||||
res.skipped = True
|
res.skipped = True
|
||||||
|
|
Loading…
Reference in New Issue