forked from VimPlug/jedi
Fix isues with Python 2.7 running a 3.6 env
This commit is contained in:
@@ -20,7 +20,7 @@ def test_simple(evaluator, environment):
|
||||
|
||||
def test_builtin_loading(evaluator):
|
||||
string, = evaluator.builtins_module.py__getattribute__(u'str')
|
||||
from_name, = string.py__getattribute__('__init__')
|
||||
from_name, = string.py__getattribute__(u'__init__')
|
||||
assert from_name.tree_node
|
||||
assert from_name.py__doc__()
|
||||
|
||||
@@ -48,7 +48,7 @@ def test_doc(evaluator):
|
||||
"""
|
||||
str_ = compiled.create_simple_object(evaluator, u'')
|
||||
# Equals `''.__getnewargs__`
|
||||
obj, = str_.py__getattribute__('__getnewargs__')
|
||||
obj, = str_.py__getattribute__(u'__getnewargs__')
|
||||
assert obj.py__doc__() == ''
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user