mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python update tests
This commit is contained in:
@@ -23,11 +23,14 @@ p = Path("filepath")
|
||||
posix = PosixPath("posix/filepath")
|
||||
windows = WindowsPath("windows/filepath")
|
||||
|
||||
p.chmod(0o777) # MISSING: $getAPathArgument=p
|
||||
posix.chmod(0o777) # MISSING: $getAPathArgument=posix
|
||||
windows.chmod(0o777) # MISSING: $getAPathArgument=windows
|
||||
p.chmod(0o777) # $getAPathArgument=p
|
||||
posix.chmod(0o777) # $getAPathArgument=posix
|
||||
windows.chmod(0o777) # $getAPathArgument=windows
|
||||
|
||||
with p.open() as f: # MISSING: $getAPathArgument=p
|
||||
with p.open() as f: # $getAPathArgument=p
|
||||
f.read()
|
||||
|
||||
p.write_bytes(b"hello") # MISSING: $getAPathArgument=p
|
||||
p.write_bytes(b"hello") # $getAPathArgument=p
|
||||
|
||||
name = windows.parent.name
|
||||
o(name) # $getAPathArgument=name
|
||||
|
||||
Reference in New Issue
Block a user