比特币核心开发检查不通过GitHub,但不触发本地

时间:2022-09-09 15:04  

我有一个拉请求,但我无法通过起毛线。

Python的open(…)似乎被用来打开文本文件,而没有显式地指定encoding='utf8': test/functional/ feature_chain_arg_冲突.py: with open(成功:251个源文件中没有发现问题^----从lint-python-utf8-encoding.py生成的失败

在本地运行检查程序不会触发任何错误警告。

唯一使用open的地方是在功能测试中。

张开(os.path.join (self.nodes[0]。Datadir, "bitcoin.conf"), "a", encoding="utf8") as conf: conf.write(f"include econf={inc_conf_file_path}n") with open(inc_conf_file_path, "w", encoding="utf8") as conf: conf.write("chain=regtestn")

我跑步

/用户/ $ {USER} / git /比特币/测试/线头/ lint-python-utf8-encoding.py

在我的文件中暂存到git中。

比特币核心开发检查不通过GitHub,但不触发本地

 
本文版权遵从外房网免责声明,更多问题请发送邮件至:
sam@glofang.com
12小时在线QQ客服
周一至周日 9:00-21:00

广告联系

邮箱:glofang@glofang.com