Commit d68b3904 authored by Jason R. Coombs's avatar Jason R. Coombs

Use binary mode to save/restore entry_points - no need to mutate newlines

parent 97724357
......@@ -70,7 +70,7 @@ class test(_test):
return # even though _test.run will raise SystemExit
# save the content
with open(entry_points) as f:
with open(entry_points, 'rb') as f:
ep_content = f.read()
# run the test
......@@ -78,7 +78,7 @@ class test(_test):
_test.run(self)
finally:
# restore the file
with open(entry_points, 'w') as f:
with open(entry_points, 'wb') as f:
f.write(ep_content)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment