mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-21 00:18:26 +08:00
imports are now fully functional
This commit is contained in:
4
test/completion/import_tree/random.py
Normal file
4
test/completion/import_tree/random.py
Normal file
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
Here because random is also a builtin module.
|
||||
"""
|
||||
a = set
|
||||
9
test/completion/thirdparty/PySide_.py
vendored
Normal file
9
test/completion/thirdparty/PySide_.py
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
from PySide import QtCore
|
||||
from PySide import QtGui
|
||||
|
||||
##? ['QEvent']
|
||||
QtCore.QEvent
|
||||
|
||||
##? []
|
||||
QtGui.QButton
|
||||
|
||||
@@ -14,7 +14,7 @@ scopes, path, dot, like = \
|
||||
source_path, True)
|
||||
|
||||
# has problems with that (sometimes) very deep nesting.
|
||||
#? set() list()
|
||||
#? set()
|
||||
el = scopes.
|
||||
|
||||
# get_names_for_scope is also recursion stuff
|
||||
@@ -179,7 +179,9 @@ def test_dir(completion_test_dir, third_party=False):
|
||||
if f_name.endswith(".py"):
|
||||
if third_party:
|
||||
try:
|
||||
__import__(f_name.replace('.py', ''))
|
||||
# there is always an underline at the end.
|
||||
# It looks like: completion/thirdparty/pylab_.py
|
||||
__import__(f_name.replace('_.py', ''))
|
||||
except ImportError:
|
||||
summary.append('Thirdparty-Library %s not found.' %
|
||||
f_name)
|
||||
|
||||
Reference in New Issue
Block a user