pytest运行报错,AttributeError: 'Function' object has no attribute 'get_marker解决方法

错误日志

运行环境pytest版本5.1.1,pytest_remotedata版本0.21。

经过测试当pytest版本为3.10.1时不会提示此错误信息。

经过网上查了资料,大概是是pytest 4.6.1的时候改过此方法,而pytest_remotedata版本太低,未修正。

所以更新下pytest_remotedata下就ok了

发布了143 篇原创文章 · 获赞 255 · 访问量 18万+

猜你喜欢

转载自blog.csdn.net/jiulanhao/article/details/100011879