summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_lockutils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-28 07:57:04 +0000
committerGerrit Code Review <review@openstack.org>2013-01-28 07:57:04 +0000
commit03dd4e7d4eb751bfad58322600464852942d5af9 (patch)
tree71d4bbb19edf558406d07cd8a917a8ef8c74d0c0 /tests/unit/test_lockutils.py
parent73c7cdc65f2c64f49139bbd2bb738635a34316e1 (diff)
parent8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 (diff)
Merge "Replace direct use of testtools BaseTestCase."
Diffstat (limited to 'tests/unit/test_lockutils.py')
-rw-r--r--tests/unit/test_lockutils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/test_lockutils.py b/tests/unit/test_lockutils.py
index dc8e413..5d4b7ad 100644
--- a/tests/unit/test_lockutils.py
+++ b/tests/unit/test_lockutils.py
@@ -21,17 +21,16 @@ import select
import shutil
import tempfile
import time
-import testtools
import eventlet
from eventlet import greenpool
from eventlet import greenthread
from openstack.common import lockutils
-from tests import utils as test_utils
+from tests import utils
-class TestFileLocks(test_utils.BaseTestCase):
+class TestFileLocks(utils.BaseTestCase):
def test_concurrent_green_lock_succeeds(self):
"""Verify spawn_n greenthreads with two locks run concurrently."""
tmpdir = tempfile.mkdtemp()
@@ -66,7 +65,7 @@ class TestFileLocks(test_utils.BaseTestCase):
shutil.rmtree(tmpdir)
-class LockTestCase(test_utils.BaseTestCase):
+class LockTestCase(utils.BaseTestCase):
def test_synchronized_wrapped_function_metadata(self):
@lockutils.synchronized('whatever', 'test-')
def foo():