Skip to content

Commit

Permalink
Use 'noqa: B018'
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Jan 16, 2025
1 parent c4c0b48 commit d3f9249
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def test_bind_shared_instance():
def access_shared_instance():
b.wait()
for _ in range(1000):
# assign to local variable to make ruff happy
x = m.EmptyStruct.SharedInstance
del x
m.EmptyStruct.SharedInstance # noqa: B018

threads = [
threading.Thread(target=access_shared_instance) for _ in range(nb_threads)
Expand Down

0 comments on commit d3f9249

Please sign in to comment.