From c387bf06bcc72c4b4af7a2a24baa80a273c7d8d9 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Tue, 12 Mar 2013 11:03:12 +0100 Subject: [PATCH] No need to setup import path in test.base py.test does that for us. --- test/base.py | 1 - test/refactor.py | 1 - test/run.py | 5 ----- 3 files changed, 7 deletions(-) diff --git a/test/base.py b/test/base.py index a0e6666a..efdd9f18 100644 --- a/test/base.py +++ b/test/base.py @@ -9,7 +9,6 @@ import functools test_dir = dirname(abspath(__file__)) root_dir = dirname(test_dir) -sys.path.insert(0, root_dir) import pytest diff --git a/test/refactor.py b/test/refactor.py index 206e1662..05a8d154 100755 --- a/test/refactor.py +++ b/test/refactor.py @@ -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 diff --git a/test/run.py b/test/run.py index ec2ac523..e37abab2 100755 --- a/test/run.py +++ b/test/run.py @@ -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