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:
parent
37199bcc6a
commit
666693ff29
@ -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")
|
||||
|
@ -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
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
import falcon
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
|
||||
|
||||
class TestHealth(base.TestBase):
|
||||
|
@ -18,7 +18,7 @@ import json
|
||||
|
||||
import falcon
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
|
||||
|
||||
class TestHomeDocument(base.TestBase):
|
||||
|
@ -19,7 +19,7 @@ import ddt
|
||||
import falcon
|
||||
from falcon import testing
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
|
||||
|
||||
@ddt.ddt
|
||||
|
@ -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
|
||||
|
@ -20,7 +20,7 @@ import ddt
|
||||
import falcon
|
||||
import six
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
from marconi import tests as testing
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@ import uuid
|
||||
import ddt
|
||||
import falcon
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
from marconi import tests as testing
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@ import uuid
|
||||
|
||||
import falcon
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
|
||||
|
||||
class ValidationTest(base.TestBase):
|
||||
|
@ -18,7 +18,7 @@ import uuid
|
||||
|
||||
import falcon
|
||||
|
||||
import base # noqa
|
||||
from . import base # noqa
|
||||
|
||||
|
||||
class DefaultLimitsTest(base.TestBase):
|
||||
|
Loading…
Reference in New Issue
Block a user