Skip to content

Commit

Permalink
try to fix unicode issue on write, pytest-dev/pytest#605
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Apr 21, 2017
1 parent fce83fb commit 6e0868d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_unihan.py
Expand Up @@ -170,7 +170,7 @@ def test_extract(mock_zip_file):
def test_convert_only_output_requested_columns(tmpdir):
csv_file = tmpdir.join('test.csv')

csv_file.write(SAMPLE_DATA.encode('utf-8'))
csv_file.write(SAMPLE_DATA.encode('utf-8'), mode='wb')

csv_files = [
str(csv_file)
Expand Down

0 comments on commit 6e0868d

Please sign in to comment.