test_processes: fix unclosed file (#31644)

This commit is contained in:
Cameron Clough
2024-02-29 16:17:13 +00:00
committed by GitHub
parent 8e82bce17a
commit 251eee4664
@@ -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)