forked from VimPlug/jedi
PEP8 whitespace
This commit is contained in:
@@ -3,6 +3,7 @@ from jedi.parsing import Parser
|
||||
from jedi._compatibility import is_py3k; is_py3k # shut up pyflakes
|
||||
from . import base
|
||||
|
||||
|
||||
@base.py3_only
|
||||
def test_py3k_imports_are_always_absolute():
|
||||
"""
|
||||
@@ -11,6 +12,7 @@ def test_py3k_imports_are_always_absolute():
|
||||
parser = Parser("1", "test.py")
|
||||
assert parser.scope.absolute_imports
|
||||
|
||||
|
||||
@base.py2_only
|
||||
def test_py2_imports_are_not_always_absolute():
|
||||
"""
|
||||
@@ -19,6 +21,7 @@ def test_py2_imports_are_not_always_absolute():
|
||||
parser = Parser("1", "test.py")
|
||||
assert not parser.scope.absolute_imports
|
||||
|
||||
|
||||
def test_imports_are_absolute_in_modules_with_future_import():
|
||||
"""
|
||||
In any module with the ``absolute_import`` ``__future__`` import, all
|
||||
@@ -27,6 +30,7 @@ def test_imports_are_absolute_in_modules_with_future_import():
|
||||
parser = Parser("from __future__ import absolute_import", "test.py")
|
||||
assert parser.scope.absolute_imports
|
||||
|
||||
|
||||
@base.cwd_at("test/absolute_import")
|
||||
def test_can_complete_when_shadowing():
|
||||
filename = "unittest.py"
|
||||
|
||||
Reference in New Issue
Block a user