1
0
forked from VimPlug/jedi

remove all the deprecation warnings in jedi itself

This commit is contained in:
David Halter
2013-08-11 23:00:27 +04:30
parent 0ab4119447
commit e07625017d
7 changed files with 21 additions and 23 deletions

View File

@@ -2,8 +2,7 @@
Test all things related to the ``jedi.api`` module.
"""
import jedi
from jedi import common
from jedi import common, api
def test_preload_modules():
@@ -19,9 +18,9 @@ def test_preload_modules():
with common.ignored(KeyError): # performance of tests -> no reload
new['__builtin__'] = temp_cache['__builtin__']
jedi.preload_module('datetime')
api.preload_module('datetime')
check_loaded('datetime')
jedi.preload_module('json', 'token')
api.preload_module('json', 'token')
check_loaded('datetime', 'json', 'token')
cache.parser_cache = temp_cache