diff options
author | IWAMOTO Toshihiro <iwamoto@valinux.co.jp> | 2015-06-16 18:14:53 +0900 |
---|---|---|
committer | IWAMOTO Toshihiro <iwamoto@valinux.co.jp> | 2015-06-16 18:16:45 +0900 |
commit | 98c3227f91d9dc31d213eb2461f86535af050058 (patch) | |
tree | b3da9a617d0f353fd6d7afec65127ddd5b8013e8 | |
parent | 4ac9247be5a0bf0d165958af14e5249d70714f96 (diff) | |
download | oslo-concurrency-98c3227f91d9dc31d213eb2461f86535af050058.tar.gz |
Fix LockFixture docstring
Fixtures.useFixture takes a class instance, not a class type.
Change-Id: I48fff3f1a25b28e9ba15f79cbe18ea4c9582bd5c
-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() ... |