Skip to content

Commit d3f9249

Browse files
committed
Use 'noqa: B018'
1 parent c4c0b48 commit d3f9249

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_thread.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def test_bind_shared_instance():
5757
def access_shared_instance():
5858
b.wait()
5959
for _ in range(1000):
60-
# assign to local variable to make ruff happy
61-
x = m.EmptyStruct.SharedInstance
62-
del x
60+
m.EmptyStruct.SharedInstance # noqa: B018
6361

6462
threads = [
6563
threading.Thread(target=access_shared_instance) for _ in range(nb_threads)

0 commit comments

Comments
 (0)