请问pytest执行报错(AttributeError: 'generator' object has no attribute 'skipped')

INTERNALERROR> elif not rep.skipped and xfailed:
INTERNALERROR> AttributeError: 'generator' object has no attribute 'skipped'

============================= 1 warning in 0.10s ==============================

Process finished with exit code 3

generator没有skipped这个用法,你仔细看看