mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-27 06:02:07 +08:00
Fix get_parent_scope
This commit is contained in:
@@ -99,7 +99,7 @@ def test_function_call_signature_in_doc(Script):
|
||||
|
||||
|
||||
def test_param_docstring():
|
||||
param = jedi.names("def test(parameter): pass")[1]
|
||||
param = jedi.names("def test(parameter): pass", all_scopes=True)[1]
|
||||
assert param.name == 'parameter'
|
||||
assert param.docstring() == ''
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ def test_namedtuple_list(Script):
|
||||
assert completions == {'legs', 'length', 'large'}
|
||||
|
||||
|
||||
@pytest.mark.skip(reason='TODO Please remove this once typeshed is merged')
|
||||
def test_namedtuple_content(Script):
|
||||
source = dedent("""\
|
||||
import collections
|
||||
|
||||
Reference in New Issue
Block a user