Skip to content

Commit

Permalink
Read in binary mode -> get bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafguns committed Apr 9, 2015
1 parent 6c239e8 commit e9b0818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_scoresheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_to_file(self):
fd, fname = tempfile.mkstemp()
self.sheet.to_file(fname)

with open(fname) as fh:
with open(fname, "rb") as fh:
assert_equal(fh.read(), self.expected)
os.close(fd)
os.unlink(fname)
Expand Down

0 comments on commit e9b0818

Please sign in to comment.