Don't skip watchrule test on exception
There are no circumstances in which failing to import the heat.engine.watchrule module would not be an issue. Change-Id: I6d03ed8f761a24aa69409010390289e387523813 Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
parent
f531f6fb28
commit
8d1e6e3ab5
@ -17,16 +17,12 @@ import datetime
|
|||||||
import mox
|
import mox
|
||||||
from nose.plugins.attrib import attr
|
from nose.plugins.attrib import attr
|
||||||
import unittest
|
import unittest
|
||||||
from nose.exc import SkipTest
|
|
||||||
import logging
|
import logging
|
||||||
from heat.common import context
|
from heat.common import context
|
||||||
import heat.db as db_api
|
import heat.db as db_api
|
||||||
|
|
||||||
from heat.openstack.common import timeutils
|
from heat.openstack.common import timeutils
|
||||||
try:
|
from heat.engine import watchrule
|
||||||
from heat.engine import watchrule
|
|
||||||
except:
|
|
||||||
raise SkipTest("unable to import watchrule, skipping")
|
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('test_watch')
|
logger = logging.getLogger('test_watch')
|
||||||
|
Loading…
Reference in New Issue
Block a user