with open(report_abspath,"wb") as fp: OSError: [Errno 22] Invalid argument:报错

report_path = os.path.join(os.getcwd(),"report1")


now = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time()))

report_abspath = os.path.join(report_path,"result_"+ now +".html")

fp = open("report_abspath","wb")

runner =HTMLTestRunner(stream = fp,
title = "login test cwp",
description="cwp vod test report")

runner.run(testsuite)
fp.close()
posted on 2019-12-16 16:54  wenjingtester  阅读(1153)  评论(0编辑  收藏  举报