Skip to content

Commit a7b9d78

Browse files
committed
run linter
1 parent 4c928c8 commit a7b9d78

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_lock.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,13 @@ def test_context_manager_raises_when_locked_not_acquired(self, r):
135135

136136
def test_context_manager_not_raise_on_release_error(self, r):
137137
try:
138-
with self.get_lock(
139-
r, "foo", timeout=0.1, raise_on_release_error=False
140-
):
138+
with self.get_lock(r, "foo", timeout=0.1, raise_on_release_error=False):
141139
time.sleep(0.15)
142140
except LockNotOwnedError:
143141
pytest.fail("LockNotOwnedError should not have been raised")
144142

145143
with pytest.raises(LockNotOwnedError):
146-
with self.get_lock(
147-
r, "foo", timeout=0.1, raise_on_release_error=True
148-
):
144+
with self.get_lock(r, "foo", timeout=0.1, raise_on_release_error=True):
149145
time.sleep(0.15)
150146

151147
def test_high_sleep_small_blocking_timeout(self, r):

0 commit comments

Comments
 (0)