Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2387dc6 commit 52a9040Copy full SHA for 52a9040
1 file changed
python/ql/test/library-tests/frameworks/stdlib/FileSystemAccess.py
@@ -23,11 +23,14 @@
23
posix = PosixPath("posix/filepath")
24
windows = WindowsPath("windows/filepath")
25
26
-p.chmod(0o777) # MISSING: $getAPathArgument=p
27
-posix.chmod(0o777) # MISSING: $getAPathArgument=posix
28
-windows.chmod(0o777) # MISSING: $getAPathArgument=windows
+p.chmod(0o777) # $getAPathArgument=p
+posix.chmod(0o777) # $getAPathArgument=posix
+windows.chmod(0o777) # $getAPathArgument=windows
29
30
-with p.open() as f: # MISSING: $getAPathArgument=p
+with p.open() as f: # $getAPathArgument=p
31
f.read()
32
33
-p.write_bytes(b"hello") # MISSING: $getAPathArgument=p
+p.write_bytes(b"hello") # $getAPathArgument=p
34
+
35
+name = windows.parent.name
36
+o(name) # $getAPathArgument=name
0 commit comments