Use relative import for base in tests

Py3K fails to import base for tests. Use a relative import instead of an
absolute one.

Partially-implements: py3k-support
Change-Id: I3f3ef511c199a38a8e99c578364b80280f673226
This commit is contained in:
Flavio Percoco 2013-12-05 02:04:45 +01:00
parent 37199bcc6a
commit 666693ff29
10 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@ import testtools
if not six.PY3:
from keystoneclient.middleware import auth_token
import base # noqa
from . import base # noqa
@testtools.skipIf(six.PY3, "No Py3K support for keystoneclient")

View File

@ -20,7 +20,7 @@ import ddt
import falcon
from testtools import matchers
import base # noqa
from . import base # noqa
from marconi.openstack.common import timeutils
from marconi import tests as testing

View File

@ -16,7 +16,7 @@
import falcon
import base # noqa
from . import base # noqa
class TestHealth(base.TestBase):

View File

@ -18,7 +18,7 @@ import json
import falcon
import base # noqa
from . import base # noqa
class TestHomeDocument(base.TestBase):

View File

@ -19,7 +19,7 @@ import ddt
import falcon
from falcon import testing
import base # noqa
from . import base # noqa
@ddt.ddt

View File

@ -21,7 +21,7 @@ import falcon
import six
from testtools import matchers
import base # noqa
from . import base # noqa
from marconi.openstack.common import timeutils
from marconi.queues.transport import validation
from marconi import tests as testing

View File

@ -20,7 +20,7 @@ import ddt
import falcon
import six
import base # noqa
from . import base # noqa
from marconi import tests as testing

View File

@ -21,7 +21,7 @@ import uuid
import ddt
import falcon
import base # noqa
from . import base # noqa
from marconi import tests as testing

View File

@ -18,7 +18,7 @@ import uuid
import falcon
import base # noqa
from . import base # noqa
class ValidationTest(base.TestBase):

View File

@ -18,7 +18,7 @@ import uuid
import falcon
import base # noqa
from . import base # noqa
class DefaultLimitsTest(base.TestBase):