Skip to content

Commit

Permalink
Fix string writing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrandis committed Mar 7, 2016
1 parent 2848174 commit 3f90a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/extensions/test_saveload.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_load_nonexisting(self):
def test_loading_exception(self):
"""Check loading exception."""
with tempfile.NamedTemporaryFile(delete=False) as f:
f.write('a')
f.write('a'.encode('utf-8'))
load = Load(f.name)
load.main_loop = self.main_loop
self.assertRaises(tarfile.ReadError, load.before_training)
Expand Down

0 comments on commit 3f90a63

Please sign in to comment.