python之HtmlTestRunner(三)中文字体乱码的情况
使用HtmlTestRunner测试报告时,遇到中文字体无法识别的情况:

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

修改后:

修改后浏览,正常了:

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

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

修改后:

修改后浏览,正常了:
