02-pytest运行报错

发布时间 2023-04-20 17:47:56作者: 测试圈的彭于晏
# 运行时提示:  
  pytest - Windows fatal exception: code 0x8001010d

# 解决方法:pytest.ini 中加上 no:faulthandler
  addopts = -vs -p no:faulthandler --html ../report/re.html  
# 运行时警告: 
     DeprecationWarning: invalid escape sequence \d

# 解决方法:加上: -p no:warnings忽略警告
      addopts = -vs -p no:warnings --html ../report/re.html