test_processes: fix unclosed file (#31644)

old-commit-hash: 251eee4664
chrysler-long2
Cameron Clough 1 year ago committed by GitHub
parent 1aeceb60d6
commit 220ac6c422
  1. 3
      selfdrive/test/process_replay/test_processes.py

@ -156,7 +156,8 @@ if __name__ == "__main__":
assert full_test, "Need to run full test when updating refs" assert full_test, "Need to run full test when updating refs"
try: try:
ref_commit = open(REF_COMMIT_FN).read().strip() with open(REF_COMMIT_FN) as f:
ref_commit = f.read().strip()
except FileNotFoundError: except FileNotFoundError:
print("Couldn't find reference commit") print("Couldn't find reference commit")
sys.exit(1) sys.exit(1)

Loading…
Cancel
Save