File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments