pytest运行错误

pytest报错解决:
问题1:UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x8d in position 165: illegal multibyte sequence
解决:将文件中pytest.ini文件中的中文去掉

问题2:pluggy.manager.PluginValidationError: unknown hook ‘pytest_namespace’ in plugin
解决:降低pytest版本,比如pytest 4.0.2

问题3:点击生成的网页index.html文件,出现如下图的部分内容显示。
解决:使用命令解决:allure open -h 127.0.0.1 -p 8083 ./report/htmlpytest运行错误_第1张图片

你可能感兴趣的:(pytest运行错误)