From 620d6c4aee3ae62a3138c226d265cf5211eafabb Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 1 Oct 2015 12:36:22 -0700 Subject: [PATCH] Restore bytes test for warnings removed in c54f786 --- sasstests.py | 4 ++++ 1 file changed, 4 insertions(+) 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)