forked from VimPlug/jedi
No need to setup import path in test.base
py.test does that for us.
This commit is contained in:
@@ -9,7 +9,6 @@ import functools
|
||||
|
||||
test_dir = dirname(abspath(__file__))
|
||||
root_dir = dirname(test_dir)
|
||||
sys.path.insert(0, root_dir)
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import traceback
|
||||
import re
|
||||
import itertools
|
||||
|
||||
from . import base # required to setup import path
|
||||
from jedi._compatibility import reduce
|
||||
import jedi
|
||||
from jedi import refactoring
|
||||
|
||||
@@ -97,17 +97,12 @@ Tests look like this::
|
||||
abc
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
from . import base # required to setup import path
|
||||
import jedi
|
||||
from jedi._compatibility import unicode, StringIO, reduce, is_py25
|
||||
|
||||
|
||||
sys.path.pop(0) # pop again, because it might affect the completion
|
||||
|
||||
|
||||
TEST_COMPLETIONS = 0
|
||||
TEST_DEFINITIONS = 1
|
||||
TEST_ASSIGNMENTS = 2
|
||||
|
||||
Reference in New Issue
Block a user