We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea74ea4 commit 33fd05dCopy full SHA for 33fd05d
tests/tests/test_compressor.py
@@ -3,6 +3,7 @@
3
4
import base64
5
import os
6
+import io
7
8
try:
9
from mock import patch
@@ -175,7 +176,7 @@ def test_compressor_subprocess_unicode(self):
175
176
tests_path = os.path.dirname(os.path.dirname(__file__))
177
output = SubProcessCompressor(False).execute_command(
178
'/usr/bin/env cat',
- open(tests_path + '/assets/css/unicode.css').read())
179
+ io.open(tests_path + '/assets/css/unicode.css', encoding="utf-8").read())
180
self.assertEqual(""".some_class {
181
// Some unicode
182
content: "áéíóú";
0 commit comments