Skip to content

Commit 33fd05d

Browse files
committed
add econding to open
1 parent ea74ea4 commit 33fd05d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/tests/test_compressor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import base64
55
import os
6+
import io
67

78
try:
89
from mock import patch
@@ -175,7 +176,7 @@ def test_compressor_subprocess_unicode(self):
175176
tests_path = os.path.dirname(os.path.dirname(__file__))
176177
output = SubProcessCompressor(False).execute_command(
177178
'/usr/bin/env cat',
178-
open(tests_path + '/assets/css/unicode.css').read())
179+
io.open(tests_path + '/assets/css/unicode.css', encoding="utf-8").read())
179180
self.assertEqual(""".some_class {
180181
// Some unicode
181182
content: "áéíóú";

0 commit comments

Comments
 (0)