Disable the star import cache.

This commit is contained in:
Dave Halter
2015-04-26 00:02:47 +02:00
parent 06d134a7c1
commit 0203461980
4 changed files with 21 additions and 6 deletions

View File

@@ -121,6 +121,14 @@ def test_import_priorities():
from import_tree import the_pkg, invisible_pkg
#? int()
invisible_pkg
# In real Python, this would be the module, but it's not, because Jedi
# doesn't care about most stateful issues such as __dict__, which it would
# need to, to do this in a correct way.
#? int()
the_pkg
# Importing foo is still possible, even though inivisible_pkg got changed.
#? float()
from import_tree.invisible_pkg import foo
# -----------------