forked from VimPlug/jedi
and again some forgotten imports in the tests
This commit is contained in:
@@ -47,8 +47,8 @@ class TestRegression(Base):
|
|||||||
old, api.settings.star_import_cache_validity = \
|
old, api.settings.star_import_cache_validity = \
|
||||||
api.settings.star_import_cache_validity, new
|
api.settings.star_import_cache_validity, new
|
||||||
|
|
||||||
imports = api.imports
|
cache = api.cache
|
||||||
imports.star_import_cache = {} # first empty...
|
cache.star_import_cache = {} # first empty...
|
||||||
# path needs to be not-None (otherwise caching effects are not visible)
|
# path needs to be not-None (otherwise caching effects are not visible)
|
||||||
api.Script('', 1, 0, '').complete()
|
api.Script('', 1, 0, '').complete()
|
||||||
time.sleep(2 * new)
|
time.sleep(2 * new)
|
||||||
@@ -57,7 +57,7 @@ class TestRegression(Base):
|
|||||||
# reset values
|
# reset values
|
||||||
api.settings.star_import_cache_validity = old
|
api.settings.star_import_cache_validity = old
|
||||||
length = len(imports.star_import_cache)
|
length = len(imports.star_import_cache)
|
||||||
imports.star_import_cache = {}
|
cache.star_import_cache = {}
|
||||||
self.assertEqual(length, 1)
|
self.assertEqual(length, 1)
|
||||||
|
|
||||||
def test_part_parser(self):
|
def test_part_parser(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user