Skip to content

Commit

Permalink
test encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 5, 2016
1 parent d4a60d5 commit dcd336b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_osfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def assert_bytes(self, path, contents):
def assert_text(self, path, contents):
assert isinstance(contents, text_type)
_path = self._get_real_path(path)
with io.open(_path, 'rt') as f:
with io.open(_path, 'rt', encoding='utf-8') as f:
data = f.read()
self.assertEqual(data, contents)
self.assertIsInstance(data, text_type)
Expand Down

0 comments on commit dcd336b

Please sign in to comment.