mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Avoid universal newlines even more
This commit is contained in:
@@ -118,9 +118,9 @@ def test_create_environment_executable():
|
||||
assert environment.executable == sys.executable
|
||||
|
||||
|
||||
def test_get_default_environment_from_env_does_not_use_safe(tmpdir, monkeypatch):
|
||||
def test_get_default_environment_from_env_does_not_use_safe(tmpdir, monkeypatch, skip_python2):
|
||||
fake_python = os.path.join(str(tmpdir), 'fake_python')
|
||||
with open(fake_python, 'w') as f:
|
||||
with open(fake_python, 'w', newline='') as f:
|
||||
f.write('')
|
||||
|
||||
def _get_subprocess(self):
|
||||
|
||||
@@ -33,7 +33,7 @@ def test_rename_mod(Script, dir_with_content):
|
||||
p2 = os.path.join(dir_with_content, 'modr.py')
|
||||
expected_code = 'import modr\nfoo\n'
|
||||
assert not os.path.exists(p1)
|
||||
with open(p2) as f:
|
||||
with open(p2, newline='') as f:
|
||||
assert f.read() == expected_code
|
||||
|
||||
assert refactoring.get_renames() == [(p1, p2)]
|
||||
|
||||
Reference in New Issue
Block a user