You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/ql/test/query-tests/Resources/FileNotAlwaysClosed/resources_test.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -277,4 +277,11 @@ def closed28(path):
277
277
try:
278
278
f28.write("hi")
279
279
finally:
280
-
f28.close()
280
+
f28.close()
281
+
282
+
defclosed29(path):
283
+
# Due to an approximation in CFG reachability for performance, it is not detected that the `write` call that may raise occurs after the file has already been closed.
0 commit comments