Python update tests

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-04-15 09:46:53 +02:00
parent 2387dc640c
commit 52a9040d73

View File

@@ -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