Move some stuff from compiled to context

This commit is contained in:
Dave Halter
2017-11-29 01:03:01 +01:00
parent 4f04f7f09c
commit 543f4f7ff2
4 changed files with 503 additions and 493 deletions

View File

@@ -23,7 +23,7 @@ def test_simple(evaluator):
def test_fake_loading(evaluator):
builtin = compiled.get_special_object(evaluator, 'BUILTINS')
string, = builtin.py__getattribute__('str')
from_name = compiled._create_from_name(evaluator, string, '__init__')
from_name = compiled.context._create_from_name(evaluator, string, '__init__')
assert from_name.tree_node
@@ -40,7 +40,7 @@ def test_parse_function_doc_illegal_docstr():
doesn't have a closing bracket.
"""
assert ('', '') == compiled._parse_function_doc(docstr)
assert ('', '') == compiled.context._parse_function_doc(docstr)
def test_doc(evaluator):