diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-07-30 02:01:28 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-07-30 02:01:28 +0200 |
commit | 10ef2866ca67dc4efacbd3f8ae6d8d1fec8d2a62 (patch) | |
tree | b944112af0bf45c8e1eb68cb66f3cfd098739224 /test | |
parent | 3612e7ca76af1b48450ddb60e4005960960e9cc4 (diff) | |
download | mitmproxy-10ef2866ca67dc4efacbd3f8ae6d8d1fec8d2a62.tar.gz mitmproxy-10ef2866ca67dc4efacbd3f8ae6d8d1fec8d2a62.tar.bz2 mitmproxy-10ef2866ca67dc4efacbd3f8ae6d8d1fec8d2a62.zip |
fix tflow.js creation on Windows.
Keep lineendings consistent so that running the tests does not produce
a different file on Windows.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/tools/web/test_app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/tools/web/test_app.py b/test/mitmproxy/tools/web/test_app.py index 2362508f..091ef5e8 100644 --- a/test/mitmproxy/tools/web/test_app.py +++ b/test/mitmproxy/tools/web/test_app.py @@ -322,5 +322,5 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): web_root = os.path.join(here, os.pardir, os.pardir, os.pardir, os.pardir, 'web') tflow_path = os.path.join(web_root, 'src/js/__tests__/ducks/_tflow.js') content = """export default function(){{\n return {tflow_json}\n}}""".format(tflow_json=tflow_json) - with open(tflow_path, 'w') as f: + with open(tflow_path, 'w', newline="\n") as f: f.write(content) |