mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 02:43:47 +08:00
test_processes: fix unclosed file (#31644)
old-commit-hash: 251eee46644c7975d732cb557af419d211532895
This commit is contained in:
@@ -156,7 +156,8 @@ if __name__ == "__main__":
|
||||
assert full_test, "Need to run full test when updating refs"
|
||||
|
||||
try:
|
||||
ref_commit = open(REF_COMMIT_FN).read().strip()
|
||||
with open(REF_COMMIT_FN) as f:
|
||||
ref_commit = f.read().strip()
|
||||
except FileNotFoundError:
|
||||
print("Couldn't find reference commit")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user