summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_lockutils.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-01-22 19:54:57 -0500
committerMonty Taylor <mordred@inaugust.com>2013-01-24 16:26:43 +1100
commit827547a0b3da411441bf691ddbc94867001a3311 (patch)
tree17fb6b54fa0e00f8fa41d447f865e1ceb25b004a /tests/unit/test_lockutils.py
parent1bc3ecf25d1b86dcb178d5f59b178bde94f5f667 (diff)
Use testtools as test base class.
On the path to testr migration, we need to replace the unittest base classes with testtools. Replace tearDown with addCleanup, addCleanup is more resilient than tearDown. The fixtures library has excellent support for managing and cleaning tempfiles. Use it. Replace skip_ with testtools.skipTest Part of blueprint grizzly-testtools. Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98
Diffstat (limited to 'tests/unit/test_lockutils.py')
-rw-r--r--tests/unit/test_lockutils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/test_lockutils.py b/tests/unit/test_lockutils.py
index 85dce05..dc8e413 100644
--- a/tests/unit/test_lockutils.py
+++ b/tests/unit/test_lockutils.py
@@ -21,14 +21,13 @@ import select
import shutil
import tempfile
import time
-import unittest
+import testtools
import eventlet
from eventlet import greenpool
from eventlet import greenthread
from openstack.common import lockutils
-from openstack.common import testutils
from tests import utils as test_utils