diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-06-22 13:37:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-06-22 13:37:29 +0000 |
commit | 2fc22f9a30a3f2942356f5a7bec13c29aa2a75d7 (patch) | |
tree | eeb5f58522f999bbec0b59dd9cc3699fa1ca3dbc /oslo_concurrency | |
parent | 2db9a21426968614ce0305f7373cdbad867eaec1 (diff) | |
parent | 98c3227f91d9dc31d213eb2461f86535af050058 (diff) | |
download | oslo-concurrency-2fc22f9a30a3f2942356f5a7bec13c29aa2a75d7.tar.gz |
Merge "Fix LockFixture docstring"
Diffstat (limited to 'oslo_concurrency')
-rw-r--r-- | oslo_concurrency/fixture/lockutils.py | 4 |
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() ... |