Skip to content

Commit d71b5d8

Browse files
committed
Fix pylint invalid-name for thread variables
1 parent 45c47b4 commit d71b5d8

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

opentelemetry-api/tests/metrics/test_instruments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,10 @@ def worker():
738738
errors.append(exc)
739739

740740
threads = [threading.Thread(target=worker) for _ in range(num_threads)]
741-
for t in threads:
742-
t.start()
743-
for t in threads:
744-
t.join()
741+
for thread in threads:
742+
thread.start()
743+
for thread in threads:
744+
thread.join()
745745

746746
self.assertEqual([], errors)
747747

opentelemetry-api/tests/metrics/test_meter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ def worker():
209209
errors.append(exc)
210210

211211
threads = [threading.Thread(target=worker) for _ in range(num_threads)]
212-
for t in threads:
213-
t.start()
214-
for t in threads:
215-
t.join()
212+
for thread in threads:
213+
thread.start()
214+
for thread in threads:
215+
thread.join()
216216

217217
self.assertEqual([], errors)
218218

opentelemetry-api/tests/metrics/test_meter_provider.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ def worker():
177177
errors.append(exc)
178178

179179
threads = [threading.Thread(target=worker) for _ in range(num_threads)]
180-
for t in threads:
181-
t.start()
182-
for t in threads:
183-
t.join()
180+
for thread in threads:
181+
thread.start()
182+
for thread in threads:
183+
thread.join()
184184

185185
self.assertEqual([], errors)
186186

0 commit comments

Comments
 (0)