Fix open-for-writing statement

This commit is contained in:
Chris Smowton
2021-06-29 15:58:39 +01:00
parent d6edfd50da
commit 6d9661f412

View File

@@ -149,7 +149,7 @@ with open(resultQl, "w") as f:
shutil.copyfileobj(header, f)
# Make an empty .expected file, since this is an inline-exectations test
with open(os.path.join(sys.argv[3], "test.expected")):
with open(os.path.join(sys.argv[3], "test.expected"), "w"):
pass
cmd = ['codeql', 'query', 'format', '-qq', '-i', resultQl]