1
0
forked from VimPlug/jedi

Rewrite some whitespace

This commit is contained in:
Dave Halter
2020-01-22 23:13:19 +01:00
parent 7e98c9449b
commit 6a75a0c590
3 changed files with 7 additions and 12 deletions

View File

@@ -6,7 +6,6 @@ Changelog
0.16.0 (2020-01-24) 0.16.0 (2020-01-24)
+++++++++++++++++++ +++++++++++++++++++
- **Added** ``Script.get_context`` to get information where you currently are. - **Added** ``Script.get_context`` to get information where you currently are.
- Completions/type inference of **Pytest fixtures**. - Completions/type inference of **Pytest fixtures**.
- Tensorflow, Numpy and Pandas completions should now be about **4-10x faster** - Tensorflow, Numpy and Pandas completions should now be about **4-10x faster**

View File

@@ -2,8 +2,8 @@
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
'/usr/lib/python3.4/site-packages', '/usr/lib/python3.4/site-packages',
'/tmp/.buildout/eggs/important_package.egg' '/tmp/.buildout/eggs/important_package.egg'
] ]
import important_package import important_package

View File

@@ -2,9 +2,8 @@ import os
from textwrap import dedent from textwrap import dedent
from jedi._compatibility import force_unicode from jedi._compatibility import force_unicode
from jedi.inference.sys_path import (_get_parent_dir_with_file, from jedi.inference.sys_path import _get_parent_dir_with_file, \
_get_buildout_script_paths, _get_buildout_script_paths, check_sys_path_modifications
check_sys_path_modifications)
from ..helpers import cwd_at from ..helpers import cwd_at
@@ -37,8 +36,7 @@ def test_append_on_non_sys_path(Script):
path = [] path = []
d = Dummy() d = Dummy()
d.path.append('foo')""" d.path.append('foo')""")
)
paths = check_module_test(Script, code) paths = check_module_test(Script, code)
assert not paths assert not paths
@@ -48,8 +46,7 @@ def test_append_on_non_sys_path(Script):
def test_path_from_invalid_sys_path_assignment(Script): def test_path_from_invalid_sys_path_assignment(Script):
code = dedent(""" code = dedent("""
import sys import sys
sys.path = 'invalid'""" sys.path = 'invalid'""")
)
paths = check_module_test(Script, code) paths = check_module_test(Script, code)
assert not paths assert not paths
@@ -82,8 +79,7 @@ def test_path_from_sys_path_assignment(Script):
import important_package import important_package
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(important_package.main())""" sys.exit(important_package.main())""")
)
paths = check_module_test(Script, code) paths = check_module_test(Script, code)
paths = list(map(force_unicode, paths)) paths = list(map(force_unicode, paths))