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__))
|
test_dir = dirname(abspath(__file__))
|
||||||
root_dir = dirname(test_dir)
|
root_dir = dirname(test_dir)
|
||||||
sys.path.insert(0, root_dir)
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import traceback
|
|||||||
import re
|
import re
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
from . import base # required to setup import path
|
|
||||||
from jedi._compatibility import reduce
|
from jedi._compatibility import reduce
|
||||||
import jedi
|
import jedi
|
||||||
from jedi import refactoring
|
from jedi import refactoring
|
||||||
|
|||||||
@@ -97,17 +97,12 @@ Tests look like this::
|
|||||||
abc
|
abc
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from . import base # required to setup import path
|
|
||||||
import jedi
|
import jedi
|
||||||
from jedi._compatibility import unicode, StringIO, reduce, is_py25
|
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_COMPLETIONS = 0
|
||||||
TEST_DEFINITIONS = 1
|
TEST_DEFINITIONS = 1
|
||||||
TEST_ASSIGNMENTS = 2
|
TEST_ASSIGNMENTS = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user