summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2014-07-23 11:31:05 -0500
committerGerman M. Bravo <german.mb@deipi.com>2014-07-23 11:31:05 -0500
commite76c420d3790f0b6c64f0d05cbc3f289d70da014 (patch)
treeea6605fcffa6233e872e15c3be9228113fc93541
parentf83c5085447e3e705377e9c53b6c8bea739eb71b (diff)
downloadpyscss-e76c420d3790f0b6c64f0d05cbc3f289d70da014.tar.gz
Compare expected (unicode) with actual (also unicode)
-rw-r--r--scss/tests/test_files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/tests/test_files.py b/scss/tests/test_files.py
index 972e57c..c5df737 100644
--- a/scss/tests/test_files.py
+++ b/scss/tests/test_files.py
@@ -8,7 +8,7 @@ This limitation is completely arbitrary. Files starting with '_' are skipped.
"""
-from __future__ import absolute_import
+from __future__ import absolute_import, unicode_literals
import os.path
import logging
@@ -29,7 +29,7 @@ def test_pair_programmatic(scss_file_pair):
source = fh.read()
try:
with open(css_fn) as fh:
- expected = fh.read()
+ expected = fh.read().decode('utf-8')
except IOError:
expected = ''