mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
fix tflow.js creation on Windows.
Keep lineendings consistent so that running the tests does not produce a different file on Windows.
This commit is contained in:
parent
3612e7ca76
commit
10ef2866ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue