Skip to content

Commit 52a9040

Browse files
committed
Python update tests
1 parent 2387dc6 commit 52a9040

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

python/ql/test/library-tests/frameworks/stdlib/FileSystemAccess.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
posix = PosixPath("posix/filepath")
2424
windows = WindowsPath("windows/filepath")
2525

26-
p.chmod(0o777) # MISSING: $getAPathArgument=p
27-
posix.chmod(0o777) # MISSING: $getAPathArgument=posix
28-
windows.chmod(0o777) # MISSING: $getAPathArgument=windows
26+
p.chmod(0o777) # $getAPathArgument=p
27+
posix.chmod(0o777) # $getAPathArgument=posix
28+
windows.chmod(0o777) # $getAPathArgument=windows
2929

30-
with p.open() as f: # MISSING: $getAPathArgument=p
30+
with p.open() as f: # $getAPathArgument=p
3131
f.read()
3232

33-
p.write_bytes(b"hello") # MISSING: $getAPathArgument=p
33+
p.write_bytes(b"hello") # $getAPathArgument=p
34+
35+
name = windows.parent.name
36+
o(name) # $getAPathArgument=name

0 commit comments

Comments
 (0)