码迷,mamicode.com
首页 > 移动开发 > 详细

python在使用HTMLTestRunner时,报告为空,错误提示<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf_8'>

时间:2019-06-12 19:59:57      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:int   odi   使用   sed   lte   sel   write   rap   time   

解决方案:将HTMLTestRunner脚本的第631行的 print >> sys.stderr, ‘\nTime Elapsed: %s‘ % (self.stopTime-self.startTime) 或print(sys.stderr, ‘\nTime Elapsed: %s‘ % (self.stopTime-self.startTime)) 修改为 sys.stderr.write(‘\nTime Elapsed: %s\n‘ % (self.stopTime - self.startTime))

python在使用HTMLTestRunner时,报告为空,错误提示<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf_8'>

标签:int   odi   使用   sed   lte   sel   write   rap   time   

原文地址:https://www.cnblogs.com/yznmj-112/p/11011484.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!