Skip to content

Commit

Permalink
no extra variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 6, 2024
1 parent 3498c96 commit a0757a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/units/locks/smart_lock/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def function_1():
with lock_2:
if flag:
break
except DeadLockError as e:
except DeadLockError:
flag = True
queue.put(True)

Expand All @@ -70,7 +70,7 @@ def function_2():
with lock_1:
if flag:
break
except DeadLockError as e:
except DeadLockError:
flag = True
queue.put(True)

Expand Down Expand Up @@ -111,7 +111,7 @@ def function_1():
with lock_3:
if flag:
break
except DeadLockError as e:
except DeadLockError:
with lock:
cycles += 1
if cycles == 2:
Expand All @@ -130,7 +130,7 @@ def function_2():
with lock_1:
if flag:
break
except DeadLockError as e:
except DeadLockError:
with lock:
cycles += 1
if cycles == 2:
Expand All @@ -149,7 +149,7 @@ def function_3():
with lock_2:
if flag:
break
except DeadLockError as e:
except DeadLockError:
with lock:
cycles += 1
if cycles == 2:
Expand Down

0 comments on commit a0757a9

Please sign in to comment.