@@ -457,7 +457,7 @@ def importer(path):
457
457
r' Traceback \(most recent call last\):\n'
458
458
r'.+'
459
459
r'ValueError: Bad path: hi\n'
460
- r' on line 1 of stdin\n'
460
+ r' on line 1:9 of stdin\n'
461
461
r'>> @import "hi";\n'
462
462
r' --------\^\n' ,
463
463
),
@@ -475,7 +475,7 @@ def importer(path):
475
475
r'.+'
476
476
r'ValueError: Expected importer result to be a tuple of '
477
477
r'length \(1, 2, 3\) but got 0: \(\)\n'
478
- r' on line 1 of stdin\n'
478
+ r' on line 1:9 of stdin\n'
479
479
r'>> @import "hi";\n'
480
480
r' --------\^\n' ,
481
481
),
@@ -493,7 +493,7 @@ def importer(path):
493
493
r'.+'
494
494
r'ValueError: Expected importer result to be a tuple of '
495
495
r"length \(1, 2, 3\) but got 4: \('a', 'b', 'c', 'd'\)\n"
496
- r' on line 1 of stdin\n'
496
+ r' on line 1:9 of stdin\n'
497
497
r'>> @import "hi";\n'
498
498
r' --------\^\n' ,
499
499
),
@@ -1398,8 +1398,8 @@ def test_raises(self):
1398
1398
r' Traceback \(most recent call last\):\n'
1399
1399
r'.+'
1400
1400
r'AssertionError: foo\n'
1401
- r' on line 1 of stdin, in function `raises`\n'
1402
- r' from line 1 of stdin\n'
1401
+ r' on line 1:14 of stdin, in function `raises`\n'
1402
+ r' from line 1:14 of stdin\n'
1403
1403
r'>> a { content: raises\(\); }\n'
1404
1404
r' -------------\^\n$' ,
1405
1405
),
@@ -1410,8 +1410,9 @@ def test_warning(self):
1410
1410
with assert_raises_compile_error (
1411
1411
'Error: warning in C function returns_warning: '
1412
1412
'This is a warning\n '
1413
- ' on line 1 of stdin, in function `returns_warning`\n '
1414
- ' from line 1 of stdin\n '
1413
+ ' on line 1:14 of stdin, '
1414
+ 'in function `returns_warning`\n '
1415
+ ' from line 1:14 of stdin\n '
1415
1416
'>> a { content: returns_warning(); }\n '
1416
1417
' -------------^\n ' ,
1417
1418
):
@@ -1421,8 +1422,8 @@ def test_error(self):
1421
1422
with assert_raises_compile_error (
1422
1423
'Error: error in C function returns_error: '
1423
1424
'This is an error\n '
1424
- ' on line 1 of stdin, in function `returns_error`\n '
1425
- ' from line 1 of stdin\n '
1425
+ ' on line 1:14 of stdin, in function `returns_error`\n '
1426
+ ' from line 1:14 of stdin\n '
1426
1427
'>> a { content: returns_error(); }\n '
1427
1428
' -------------^\n ' ,
1428
1429
):
@@ -1443,8 +1444,9 @@ def test_returns_unknown_object(self):
1443
1444
' - SassMap\n '
1444
1445
' - SassWarning\n '
1445
1446
' - SassError\n '
1446
- ' on line 1 of stdin, in function `returns_unknown`\n '
1447
- ' from line 1 of stdin\n '
1447
+ ' on line 1:14 of stdin, '
1448
+ 'in function `returns_unknown`\n '
1449
+ ' from line 1:14 of stdin\n '
1448
1450
'>> a { content: returns_unknown(); }\n '
1449
1451
' -------------^\n ' ,
1450
1452
):
@@ -1631,7 +1633,7 @@ def test_stack_trace_formatting():
1631
1633
tb = traceback .format_exc ()
1632
1634
assert tb .endswith (
1633
1635
'CompileError: Error: Invalid CSS after "a{☃": expected "{", was ""\n '
1634
- ' on line 1 of stdin\n '
1636
+ ' on line 1:3 of stdin\n '
1635
1637
'>> a{☃\n '
1636
1638
' --^\n \n ' ,
1637
1639
)
0 commit comments