finally able to delete the old builtin stuff

This commit is contained in:
Dave Halter
2014-01-12 18:22:33 +01:00
parent 860aa50192
commit dfb494b9c4
3 changed files with 9 additions and 468 deletions

View File

@@ -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)