Skip to content

Commit

Permalink
Python 2/3 portability.
Browse files Browse the repository at this point in the history
  • Loading branch information
tshead2 committed Jul 9, 2018
1 parent d1aaf6e commit c0220e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def assert_canvas_matches(canvas, name):
if not os.path.exists("tests/diffs"):
os.mkdir("tests/diffs")
with open("tests/diffs/%s.svg" % name, "wb") as file:
file.write(svg_string)
file.write(svg_string.encode("utf-8"))
with open("tests/diffs/%s.reference.svg" % name, "wb") as file:
file.write(reference_string)
file.write(reference_string.encode("utf-8"))
if not os.path.exists("tests/failed"):
os.mkdir("tests/failed")
with open("tests/failed/%s.svg" % name, "wb") as file:
Expand Down

0 comments on commit c0220e9

Please sign in to comment.