diff --git a/sasstests.py b/sasstests.py index 770e28b5..27c4f600 100644 --- a/sasstests.py +++ b/sasstests.py @@ -854,6 +854,10 @@ def test_sass_warning_no_conversion(self): warn = sass.SassWarning(u'error msg') assert type(warn.msg) is text_type, type(warn.msg) + def test_sass_warning_no_conversion_bytes_message(self): + warn = sass.SassWarning(b'error msg') + assert type(warn.msg) is text_type, type(warn.msg) + def test_sass_error_no_conversion(self): err = sass.SassError(u'error msg') assert type(err.msg) is text_type, type(err.msg)