@@ -45,19 +45,19 @@ def testLocationAttr():
4545
4646# CHECK-LABEL: TEST: testFileLineCol
4747def 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
6363run (testFileLineCol )
0 commit comments