Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Oct 17, 2023
1 parent 969d6bb commit fb55680
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/codemods/test_with_threading_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,21 @@ def f(l):
lock = threading.Lock()
with lock:
print()
""",
),
(
"""import threading
def my_func():
lock = "whatever"
with threading.Lock():
foo()
""",
"""import threading
def my_func():
lock = "whatever"
lock_1 = threading.Lock()
with lock_1:
foo()
""",
),
],
Expand Down

0 comments on commit fb55680

Please sign in to comment.