Skip to content
Merged
Prev Previous commit
Next Next commit
Format code with black --line-length=100
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
saurabh500 and Copilot committed Apr 6, 2026
commit 47c61cf383f5ebee18e5c65f0cd9e2c658a1b0f5
7 changes: 2 additions & 5 deletions tests/test_021_concurrent_connection_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ def worker(idx):
except Exception as exc:
errors.append((idx, str(exc)))

threads = [
threading.Thread(target=worker, args=(i,), daemon=True)
for i in range(NUM_THREADS)
]
threads = [threading.Thread(target=worker, args=(i,), daemon=True) for i in range(NUM_THREADS)]

wall_start = time.perf_counter()
for t in threads:
Expand Down Expand Up @@ -233,7 +230,7 @@ def cpu_worker(idx):
while not stop_event.is_set():
# Busy work that requires the GIL
total = sum(range(10000))
_ = [x ** 2 for x in range(100)]
_ = [x**2 for x in range(100)]
cpu_counts[idx] += 1
except Exception as exc:
errors.append((f"cpu-{idx}", str(exc)))
Expand Down
Loading