Skip to content

Commit 11ff3ff

Browse files
authored
Update location.py formatting
1 parent 5dd46b1 commit 11ff3ff

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

mlir/test/python/ir/location.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ def testLocationAttr():
4545

4646
# CHECK-LABEL: TEST: testFileLineCol
4747
def testFileLineCol():
48-
with Context() as ctx:
49-
loc = Location.file("foo.txt", 123, 56)
50-
range = Location.file("foo.txt", 123, 56, 123, 100)
51-
ctx = None
52-
gc.collect()
53-
# CHECK: file str: loc("foo.txt":123:56)
54-
print("file str:", str(loc))
55-
# CHECK: file repr: loc("foo.txt":123:56)
56-
print("file repr:", repr(loc))
57-
# CHECK: file range str: loc("foo.txt":123:56 to :100)
58-
print("file range str:", str(range))
59-
# CHECK: file range repr: loc("foo.txt":123:56 to :100)
60-
print("file range repr:", repr(range))
48+
with Context() as ctx:
49+
loc = Location.file("foo.txt", 123, 56)
50+
range = Location.file("foo.txt", 123, 56, 123, 100)
51+
ctx = None
52+
gc.collect()
53+
# CHECK: file str: loc("foo.txt":123:56)
54+
print("file str:", str(loc))
55+
# CHECK: file repr: loc("foo.txt":123:56)
56+
print("file repr:", repr(loc))
57+
# CHECK: file range str: loc("foo.txt":123:56 to :100)
58+
print("file range str:", str(range))
59+
# CHECK: file range repr: loc("foo.txt":123:56 to :100)
60+
print("file range repr:", repr(range))
6161

6262

6363
run(testFileLineCol)

0 commit comments

Comments
 (0)