Skip to content

Commit

Permalink
Fix a test case for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed May 13, 2018
1 parent af8a98d commit 6a15bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def not_supported_format_file():
def valid_complex_json_file():
file_path = "valid_complex_json.json"

with open(file_path, "w") as f:
with io.open(file_path, "w", encoding="utf8") as f:
f.write(complex_json)

return file_path

0 comments on commit 6a15bef

Please sign in to comment.