somehow temporary solution to enable completion of __file__

This commit is contained in:
Dave Halter
2014-07-01 15:10:32 +02:00
parent f7a384bf18
commit 8d63e6f6e7
4 changed files with 25 additions and 6 deletions

View File

@@ -365,3 +365,13 @@ if foo is not None:
foo = ''.join(foo)
#? str()
foo
# -----------------
# module attributes
# -----------------
# Don't move this to imports.py, because there's a star import.
#? str()
__file__
#? ['__file__']
__file__

View File

@@ -75,9 +75,8 @@ def test_star_import_cache_duration():
# reset values
jedi.settings.star_import_cache_validity = old
length = len(cache._star_import_cache)
assert len(cache._star_import_cache) == 1
cache._star_import_cache = {}
assert length == 1
def test_cache_call_signatures():