From 6a75a0c590165a0d5e4add3636645a6ab8421929 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 22 Jan 2020 23:13:19 +0100 Subject: [PATCH] Rewrite some whitespace --- CHANGELOG.rst | 1 - test/examples/buildout_project/bin/app | 4 ++-- test/test_inference/test_buildout_detection.py | 14 +++++--------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4700b9f3..fe19f9f5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,7 +6,6 @@ Changelog 0.16.0 (2020-01-24) +++++++++++++++++++ - - **Added** ``Script.get_context`` to get information where you currently are. - Completions/type inference of **Pytest fixtures**. - Tensorflow, Numpy and Pandas completions should now be about **4-10x faster** diff --git a/test/examples/buildout_project/bin/app b/test/examples/buildout_project/bin/app index 7394d2da..e99613bd 100644 --- a/test/examples/buildout_project/bin/app +++ b/test/examples/buildout_project/bin/app @@ -2,8 +2,8 @@ import sys sys.path[0:0] = [ - '/usr/lib/python3.4/site-packages', - '/tmp/.buildout/eggs/important_package.egg' + '/usr/lib/python3.4/site-packages', + '/tmp/.buildout/eggs/important_package.egg' ] import important_package diff --git a/test/test_inference/test_buildout_detection.py b/test/test_inference/test_buildout_detection.py index b7627841..6815aa9b 100644 --- a/test/test_inference/test_buildout_detection.py +++ b/test/test_inference/test_buildout_detection.py @@ -2,9 +2,8 @@ import os from textwrap import dedent from jedi._compatibility import force_unicode -from jedi.inference.sys_path import (_get_parent_dir_with_file, - _get_buildout_script_paths, - check_sys_path_modifications) +from jedi.inference.sys_path import _get_parent_dir_with_file, \ + _get_buildout_script_paths, check_sys_path_modifications from ..helpers import cwd_at @@ -37,8 +36,7 @@ def test_append_on_non_sys_path(Script): path = [] d = Dummy() - d.path.append('foo')""" - ) + d.path.append('foo')""") paths = check_module_test(Script, code) assert not paths @@ -48,8 +46,7 @@ def test_append_on_non_sys_path(Script): def test_path_from_invalid_sys_path_assignment(Script): code = dedent(""" import sys - sys.path = 'invalid'""" - ) + sys.path = 'invalid'""") paths = check_module_test(Script, code) assert not paths @@ -82,8 +79,7 @@ def test_path_from_sys_path_assignment(Script): import important_package if __name__ == '__main__': - sys.exit(important_package.main())""" - ) + sys.exit(important_package.main())""") paths = check_module_test(Script, code) paths = list(map(force_unicode, paths))