Skip to content

Commit 6a6d6fb

Browse files
committed
Python: Add leading space in some inline tests
1 parent 13609b2 commit 6a6d6fb

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
posix = PosixPath("posix/filepath")
55
windows = WindowsPath("windows/filepath")
66

7-
p.chmod(0o777) # $getAPathArgument=p
8-
posix.chmod(0o777) # $getAPathArgument=posix
9-
windows.chmod(0o777) # $getAPathArgument=windows
7+
p.chmod(0o777) # $ getAPathArgument=p
8+
posix.chmod(0o777) # $ getAPathArgument=posix
9+
windows.chmod(0o777) # $ getAPathArgument=windows
1010

11-
with p.open() as f: # $getAPathArgument=p
11+
with p.open() as f: # $ getAPathArgument=p
1212
f.read()
1313

14-
p.write_bytes(b"hello") # $getAPathArgument=p
14+
p.write_bytes(b"hello") # $ getAPathArgument=p
1515

1616
name = windows.parent.name
1717
o = open
18-
o(name) # $getAPathArgument=name
18+
o(name) # $ getAPathArgument=name
1919

2020
wb = p.write_bytes
21-
wb(b"hello") # $getAPathArgument=p
21+
wb(b"hello") # $ getAPathArgument=p
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import builtins
22
import io
33

4-
open("filepath") # $getAPathArgument="filepath"
5-
open(file="filepath") # $getAPathArgument="filepath"
4+
open("filepath") # $ getAPathArgument="filepath"
5+
open(file="filepath") # $ getAPathArgument="filepath"
66

77
o = open
88

9-
o("filepath") # $getAPathArgument="filepath"
10-
o(file="filepath") # $getAPathArgument="filepath"
9+
o("filepath") # $ getAPathArgument="filepath"
10+
o(file="filepath") # $ getAPathArgument="filepath"
1111

1212

13-
builtins.open("filepath") # $getAPathArgument="filepath"
14-
builtins.open(file="filepath") # $getAPathArgument="filepath"
13+
builtins.open("filepath") # $ getAPathArgument="filepath"
14+
builtins.open(file="filepath") # $ getAPathArgument="filepath"
1515

1616

17-
io.open("filepath") # $getAPathArgument="filepath"
18-
io.open(file="filepath") # $getAPathArgument="filepath"
17+
io.open("filepath") # $ getAPathArgument="filepath"
18+
io.open(file="filepath") # $ getAPathArgument="filepath"

0 commit comments

Comments
 (0)