Skip to content

Commit 47c61cf

Browse files
saurabh500Copilot
andcommitted
Format code with black --line-length=100
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3fa8931 commit 47c61cf

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/test_021_concurrent_connection_perf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ def worker(idx):
8787
except Exception as exc:
8888
errors.append((idx, str(exc)))
8989

90-
threads = [
91-
threading.Thread(target=worker, args=(i,), daemon=True)
92-
for i in range(NUM_THREADS)
93-
]
90+
threads = [threading.Thread(target=worker, args=(i,), daemon=True) for i in range(NUM_THREADS)]
9491

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

0 commit comments

Comments
 (0)