mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-05 00:17:39 +08:00
finally able to delete the old builtin stuff
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
from jedi.evaluate import builtin
|
||||
|
||||
|
||||
def test_parse_function_doc_illegal_docstr():
|
||||
|
||||
def test_func(a):
|
||||
"""
|
||||
test_func(o
|
||||
|
||||
doesn't have a closing bracket.
|
||||
"""
|
||||
|
||||
assert ('', '') == builtin._parse_function_doc(test_func)
|
||||
@@ -21,3 +21,12 @@ def test_fake_loading():
|
||||
string = compiled.builtin.get_subscope_by_name('str')
|
||||
from_name = compiled._create_from_name(compiled.builtin, string, '__init__')
|
||||
assert isinstance(from_name, Function)
|
||||
|
||||
|
||||
def test_parse_function_doc_illegal_docstr():
|
||||
docstr = """
|
||||
test_func(o
|
||||
|
||||
doesn't have a closing bracket.
|
||||
"""
|
||||
assert ('', '') == compiled._parse_function_doc(docstr)
|
||||
|
||||
Reference in New Issue
Block a user