1
0
forked from VimPlug/jedi

fix a little import problem in regression tests

This commit is contained in:
David Halter
2012-12-31 12:36:33 +01:00
parent 806426898d
commit 17bec929bb
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ from _compatibility import unicode, StringIO, reduce, literal_eval, is_py25
import api
import debug
sys.path.pop() # pop again, because it might affect the completion
sys.path.pop(0) # pop again, because it might affect the completion
def run_completion_test(script, correct, line_nr):
@@ -215,10 +215,11 @@ def test_dir(completion_test_dir, thirdparty=False):
continue
if thirdparty:
lib = f_name.replace('_.py', '')
try:
# there is always an underline at the end.
# It looks like: completion/thirdparty/pylab_.py
__import__(f_name.replace('_.py', ''))
__import__(lib)
except ImportError:
summary.append('Thirdparty-Library %s not found.' %
f_name)