There was an error while loading. Please reload this page.
1 parent 4a01f64 commit b4e29b5Copy full SHA for b4e29b5
1 file changed
testing/util.py
@@ -25,5 +25,5 @@ def get_resource_path(path):
25
26
def write_file(filename, contents):
27
"""Hax because coveragepy chokes on nested context managers."""
28
- with io.open(filename, 'w') as file_obj:
+ with io.open(filename, 'w', newline='') as file_obj:
29
file_obj.write(contents)
0 commit comments