踩坑记录
问题描述:
接口自动化测试时出现报错,报错文件是allure_pytest库

问题分析:
自动化测试框架是比较成熟的代码,报错也不是自己写的文件,而是第三方库,首先推测是allure_pytest和某些库有版本不兼容的问题
搜索发现,pytest 8.2.0 和 8.1.0 的几个版本会破坏 allure 的 listener 导致虚拟机上执行报错,需把pytest 回退到8.0.2
解决方案:
pip uninstall pytest
pip install pytest==8.0.2
回退后,执行正常
