Skip to content

Commit b78e000

Browse files
committed
use context manager
1 parent 8839e71 commit b78e000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_concurrent_futures/test_future.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ def get_snapshot():
332332
results.append(snapshot)
333333

334334
threads = [threading.Thread(target=get_snapshot) for _ in range(4)]
335-
threading_helper.start_threads(threads)
336-
335+
with threading_helper.start_threads(threads):
336+
pass
337337
# All snapshots should be identical for a finished future
338338
expected = (True, False, 100, None)
339339
for result in results:

0 commit comments

Comments
 (0)