1
0
forked from VimPlug/jedi

Remove some weird changes about importing again

This commit is contained in:
Dave Halter
2019-04-09 21:48:57 +02:00
parent 255d0d9fb5
commit e61e210b41
2 changed files with 3 additions and 11 deletions

View File

@@ -412,12 +412,10 @@ def test_pre_defined_imports_module(Script, environment, name):
path = os.path.join(root_dir, name + '.py')
module = Script('', path=path)._get_module()
module_cache = module.evaluator.module_cache
assert module.string_names == (name,)
m, = module_cache.get((name,))
assert m.py__file__() != path
assert m.evaluator.builtins_module.py__file__() != path
assert m.evaluator.typing_module.py__file__() != path
assert module.evaluator.builtins_module.py__file__() != path
assert module.evaluator.typing_module.py__file__() != path
@pytest.mark.parametrize('name', ('builtins', 'typing'))