Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying

This commit is contained in:
Dave Halter
2017-12-30 03:55:23 +01:00
parent 0ed9e1c249
commit a14f665b5a
6 changed files with 9 additions and 9 deletions

View File

@@ -13,14 +13,14 @@ def test_simple(evaluator):
def test_fake_loading(evaluator):
builtin = compiled.get_special_object(evaluator, 'BUILTINS')
builtin = compiled.get_special_object(evaluator, u'BUILTINS')
string, = builtin.py__getattribute__('str')
from_name = compiled.context.create_from_name(evaluator, string, '__init__')
assert from_name.tree_node
def test_fake_docstr(evaluator):
next_ = compiled.builtin_from_name(evaluator, 'next')
next_ = compiled.builtin_from_name(evaluator, u'next')
assert next_.py__doc__()
assert next_.tree_node is not None
assert next_.py__doc__() == next.__doc__