Remove useless lock

This commit is contained in:
ZyX 2014-02-26 08:15:26 +04:00
parent c08346000b
commit acff89a8e9
1 changed files with 1 additions and 3 deletions

View File

@ -222,7 +222,6 @@ class TestThreaded(TestCase):
def test_kw_threaded_segment(self):
log = []
pl = Pl()
lock = threading.Lock()
event = threading.Event()
class TestSegment(KwThreadedSegment):
@ -237,8 +236,7 @@ class TestThreaded(TestCase):
event.set()
sleep(0.1)
log.append(('compute_state', key))
with lock:
ret = key
ret = key
if isinstance(ret, Exception):
raise ret
else: