python之HtmlTestRunner(三)中文字體亂碼的狀況

使用HtmlTestRunner測試報告時,遇到中文字體沒法識別的狀況:測試

 

解決方案
修改  \Lib\site-packages\HtmlTestRunner\result.py:def generate_file(self, output, report_name, report):
修改前:字體

 

 修改後:spa

 

 

修改後瀏覽,正常了:3d

相關文章
相關標籤/搜索