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,可以正常运行

posted on 2020-01-08 10:43  凌风子  阅读(850)  评论(0编辑  收藏  举报