Commit 33fd05de by leonardoo

add econding to open

parent ea74ea43
...@@ -3,6 +3,7 @@ from __future__ import unicode_literals ...@@ -3,6 +3,7 @@ from __future__ import unicode_literals
import base64 import base64
import os import os
import io
try: try:
from mock import patch from mock import patch
...@@ -175,7 +176,7 @@ class CompressorTest(TestCase): ...@@ -175,7 +176,7 @@ class CompressorTest(TestCase):
tests_path = os.path.dirname(os.path.dirname(__file__)) tests_path = os.path.dirname(os.path.dirname(__file__))
output = SubProcessCompressor(False).execute_command( output = SubProcessCompressor(False).execute_command(
'/usr/bin/env cat', '/usr/bin/env cat',
open(tests_path + '/assets/css/unicode.css').read()) io.open(tests_path + '/assets/css/unicode.css', encoding="utf-8").read())
self.assertEqual(""".some_class { self.assertEqual(""".some_class {
// Some unicode // Some unicode
content: "áéíóú"; content: "áéíóú";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment