Permalink
Browse files

fix a little import problem in regression tests

  • Loading branch information...
1 parent 8064268 commit 17bec929bbce6dbfed758ab8d9114936be766d87 @davidhalter committed Dec 31, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −0 jedi/fast_parser.py
  2. +3 −2 test/run.py
View
@@ -226,6 +226,7 @@ def _parse(self, code):
parser_order = 0
for code_part in parts:
lines = code_part.count('\n')
+ # the parser is using additional newlines, therefore substract
if p is None or line_offset >= p.end_pos[0] - 2:
# check if code_part has already been parsed
h = hash(code_part)
View
@@ -14,7 +14,7 @@
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)

0 comments on commit 17bec92

Please sign in to comment.