Skip to content

Commit 6d9661f

Browse files
committed
Fix open-for-writing statement
1 parent d6edfd5 commit 6d9661f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/utils/GenerateFlowTestCase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def getTuples(queryName, jsonResult, fname):
149149
shutil.copyfileobj(header, f)
150150

151151
# Make an empty .expected file, since this is an inline-exectations test
152-
with open(os.path.join(sys.argv[3], "test.expected")):
152+
with open(os.path.join(sys.argv[3], "test.expected"), "w"):
153153
pass
154154

155155
cmd = ['codeql', 'query', 'format', '-qq', '-i', resultQl]

0 commit comments

Comments
 (0)