pytest + pytest-html skip 用例後,報錯 AttributeError: ‘tuple‘ object has no attribute ‘rsplit‘

最近發現pytest框架中,skip用例後,如果生成報告就會報錯,不生成報告就不會報錯。 報錯內容是 AttributeError: ‘tuple’ object has no attribute ‘rsplit’ 就下圖這樣一大坨錯誤。 查來查去沒發現問題,百度上也沒人說過這個事。後來在Google上發現了其他人也遇到了同樣的問題。 所以我記錄一下,如果其他人遇到了也能百度的到這個解決方法。 其
相關文章
相關標籤/搜索