1
0
forked from VimPlug/jedi

Get rid of Python's universal newlines for refactoring

This commit is contained in:
Dave Halter
2020-02-29 23:31:57 +01:00
parent 0a1de619b4
commit a2b8c44e8f
3 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ def skip_old_python(skip_pre_python36):
@pytest.fixture()
def dir_with_content(tmpdir):
with open(os.path.join(tmpdir.strpath, 'modx.py'), 'w') as f:
with open(os.path.join(tmpdir.strpath, 'modx.py'), 'w', newline='') as f:
f.write('import modx\nfoo\n') # self reference
return tmpdir.strpath