1
0
forked from VimPlug/jedi

remove sys path stuff in run.py (it's in base)

This commit is contained in:
David Halter
2013-01-05 20:19:48 +01:00
parent 15bd963f59
commit 31e8a8c5a2
3 changed files with 5 additions and 11 deletions

View File

@@ -9,8 +9,6 @@ os.chdir(os.path.dirname(os.path.abspath(__file__)) + '/../jedi')
import api
#api.set_debug_function(api.debug.print_to_stdout)
class TestBase(unittest.TestCase):
def get_script(self, src, pos, path=None):
@@ -34,5 +32,3 @@ class TestBase(unittest.TestCase):
def get_in_function_call(self, src, pos=None):
script = self.get_script(src, pos)
return script.get_in_function_call()

View File

@@ -10,6 +10,9 @@ from base import TestBase
from _compatibility import is_py25, utf8, unicode
import api
#api.set_debug_function(api.debug.print_to_stdout)
class TestRegression(TestBase):
def test_star_import_cache_duration(self):
new = 0.01

View File

@@ -4,17 +4,12 @@ import sys
import re
import traceback
import time
from os.path import abspath, dirname
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/../jedi'))
os.chdir(dirname(abspath(__file__)) + '/../jedi')
from base import api
from _compatibility import unicode, StringIO, reduce, literal_eval, is_py25
import api
import debug
sys.path.pop(0) # 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):