Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions sasstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,9 @@ def test_raises(self):
r'^Error: error in C function raises: \n'
r' Traceback \(most recent call last\):\n'
r'.+'
r'AssertionError: foo\n\n\n'
r' Backtrace:\n'
r' \tstdin:1, in function `raises`\n'
r' \tstdin:1\n'
r' on line 1 of stdin\n'
r'AssertionError: foo\n'
r' on line 1 of stdin, in function `raises`\n'
r' from line 1 of stdin\n'
r'>> a { content: raises\(\); }\n'
r' -------------\^\n$'
)):
Expand All @@ -1141,11 +1139,9 @@ def test_raises(self):
def test_warning(self):
with assert_raises_compile_error(
'Error: warning in C function returns_warning: '
'This is a warning\n\n'
' Backtrace:\n'
' \tstdin:1, in function `returns_warning`\n'
' \tstdin:1\n'
' on line 1 of stdin\n'
'This is a warning\n'
' on line 1 of stdin, in function `returns_warning`\n'
' from line 1 of stdin\n'
'>> a { content: returns_warning(); }\n'
' -------------^\n'
):
Expand All @@ -1154,11 +1150,9 @@ def test_warning(self):
def test_error(self):
with assert_raises_compile_error(
'Error: error in C function returns_error: '
'This is an error\n\n'
' Backtrace:\n'
' \tstdin:1, in function `returns_error`\n'
' \tstdin:1\n'
' on line 1 of stdin\n'
'This is an error\n'
' on line 1 of stdin, in function `returns_error`\n'
' from line 1 of stdin\n'
'>> a { content: returns_error(); }\n'
' -------------^\n'
):
Expand All @@ -1178,11 +1172,9 @@ def test_returns_unknown_object(self):
' - dict\n'
' - SassMap\n'
' - SassWarning\n'
' - SassError\n\n\n'
' Backtrace:\n'
' \tstdin:1, in function `returns_unknown`\n'
' \tstdin:1\n'
' on line 1 of stdin\n'
' - SassError\n'
' on line 1 of stdin, in function `returns_unknown`\n'
' from line 1 of stdin\n'
'>> a { content: returns_unknown(); }\n'
' -------------^\n'
):
Expand Down