avoid ImportError in test suite on python 3

python3 does not allow relative imports.

test/unit/__init.py__ and test/functional/__init.py__ already exist,
which means we can use absolute import on all versions of python
without resorting to http://legacy.python.org/dev/peps/pep-0328/
This commit is contained in:
Paul Morgan 2014-02-22 19:43:43 +00:00
parent 2380fd81a0
commit 25c6f7f1e0
5 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ from os.path import join
from tito.common import run_command
from tito.compat import *
from fixture import TitoGitTestFixture, tito
from functional.fixture import TitoGitTestFixture, tito
EXT_SRC_PKG = "extsrc"

View file

@ -22,7 +22,7 @@ from os.path import join
from tito.common import run_command, \
get_latest_tagged_version, tag_exists_locally
from fixture import *
from functional.fixture import *
# A location where we can safely create a test git repository.
# WARNING: This location will be destroyed if present.

View file

@ -22,7 +22,7 @@ import tempfile
from os.path import join
from fixture import TitoGitTestFixture, tito
from functional.fixture import TitoGitTestFixture, tito
from tito.compat import *

View file

@ -14,7 +14,7 @@
import os
from tito.common import *
from fixture import TitoGitTestFixture, tito
from functional.fixture import TitoGitTestFixture, tito
#TITO_REPO = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
PKG_NAME = "titotestpkg"

View file

@ -22,7 +22,7 @@ http://docs.python.org/3.3/reference/lexical_analysis.html
"""
import pep8
from fixture import *
from unit.fixture import *
class TestPep8(TitoUnitTestFixture):