mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 22:05:23 +08:00
somehow temporary solution to enable completion of __file__
This commit is contained in:
@@ -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__
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user