mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
test_param_docstring: use all_scopes=True to ensure param is extracted
This commit is contained in:
@@ -99,7 +99,7 @@ def test_function_call_signature_in_doc(Script):
|
|||||||
|
|
||||||
|
|
||||||
def test_param_docstring():
|
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.name == 'parameter'
|
||||||
assert param.docstring() == ''
|
assert param.docstring() == ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user