python之HtmlTestRunner(三)中文字体乱码的状况

使用HtmlTestRunner测试报告时,遇到中文字体没法识别的状况:测试

 

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

 

 修改后:spa

 

 

修改后浏览,正常了:3d

相关文章
相关标签/搜索