Fixed CompilerFilter to always output Unicode strings

This commit is contained in:
Antti Hirvonen
2012-09-12 16:13:19 +03:00
parent b3a3419ccc
commit 47bcd9cbeb
2 changed files with 8 additions and 1 deletions

View File

@@ -67,6 +67,11 @@ class PrecompilerTestCase(TestCase):
compiler = CompilerFilter(content=self.content, filename=self.filename, command=command)
self.assertEqual(u"body { color:#990; }%s" % os.linesep, compiler.input())
def test_precompiler_output_unicode(self):
command = '%s %s' % (sys.executable, self.test_precompiler)
compiler = CompilerFilter(content=self.content, filename=self.filename, command=command)
self.assertEqual(type(compiler.input()), unicode)
class CssMinTestCase(TestCase):
def test_cssmin_filter(self):