mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
Remove useless lock
This commit is contained in:
parent
c08346000b
commit
acff89a8e9
@ -222,7 +222,6 @@ class TestThreaded(TestCase):
|
|||||||
def test_kw_threaded_segment(self):
|
def test_kw_threaded_segment(self):
|
||||||
log = []
|
log = []
|
||||||
pl = Pl()
|
pl = Pl()
|
||||||
lock = threading.Lock()
|
|
||||||
event = threading.Event()
|
event = threading.Event()
|
||||||
|
|
||||||
class TestSegment(KwThreadedSegment):
|
class TestSegment(KwThreadedSegment):
|
||||||
@ -237,8 +236,7 @@ class TestThreaded(TestCase):
|
|||||||
event.set()
|
event.set()
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
log.append(('compute_state', key))
|
log.append(('compute_state', key))
|
||||||
with lock:
|
ret = key
|
||||||
ret = key
|
|
||||||
if isinstance(ret, Exception):
|
if isinstance(ret, Exception):
|
||||||
raise ret
|
raise ret
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user