pytest 运行用例报错:unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin'

以pytest方式运行用例,报错:pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin' from 'D:\\python3.7.1\\lib\\site-packages\\allure\\pytest_plugin.py'>

网上说是pytest版本过高了

环境中pytest是5.3.1的,卸载重新安装pytest==4.0.2,可以正常运行

猜你喜欢

转载自www.cnblogs.com/xioawu-blog/p/12038274.html