| commit | b4e29b5e63e4cd93d4244e7a52f772a40f9a7772 | [log] [tgz] |
|---|---|---|
| author | Anthony Sottile <asottile@umich.edu> | Thu May 26 11:45:28 2016 -0700 |
| committer | Anthony Sottile <asottile@umich.edu> | Thu May 26 11:45:28 2016 -0700 |
| tree | 53ba7d1e7ec1d5a0eb90c2a6336b4071742f57bc | |
| parent | 4a01f64c8f67ec74edd2c6c501bce8bf61ad3494 [diff] |
Use newline='' to avoid automatic newline translation
diff --git a/testing/util.py b/testing/util.py index 3b90631..eacb637 100644 --- a/testing/util.py +++ b/testing/util.py
@@ -25,5 +25,5 @@ def write_file(filename, contents): """Hax because coveragepy chokes on nested context managers.""" - with io.open(filename, 'w') as file_obj: + with io.open(filename, 'w', newline='') as file_obj: file_obj.write(contents)