mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
remove sys path stuff in run.py (it's in base)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user