summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_concurrency/fixture/lockutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_concurrency/fixture/lockutils.py b/oslo_concurrency/fixture/lockutils.py
index bdf7883..8c4d1fc 100644
--- a/oslo_concurrency/fixture/lockutils.py
+++ b/oslo_concurrency/fixture/lockutils.py
@@ -28,7 +28,7 @@ class LockFixture(fixtures.Fixture):
be the first line in a test method, like so::
def test_method(self):
- self.useFixture(LockFixture)
+ self.useFixture(LockFixture('lock_name'))
...
or the first line in setUp if all the test methods in the class are
@@ -36,7 +36,7 @@ class LockFixture(fixtures.Fixture):
class TestCase(testtools.testcase):
def setUp(self):
- self.useFixture(LockFixture)
+ self.useFixture(LockFixture('lock_name'))
super(TestCase, self).setUp()
...