8000 gh-129068: allow concurrent iteration over range iterators by tom-pytel · Pull Request #131921 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-129068: allow concurrent iteration over range iterators #131921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
remove whitespace from test_iteration.py
  • Loading branch information
tom-pytel committed Mar 30, 2025
commit ca9e6a5c5d2f618b4b11174dbae73a040d9bc027
4 changes: 2 additions & 2 deletions Lib/test/test_free_threading/test_iteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run_threads(self, func, *args, numthreads=NUMTHREADS):
t.start()
threads.append(t)
return threads

def test_iteration(self):
"""Test iteration over a shared container"""
seq = self.make_testdata(NUMITEMS)
Expand All @@ -53,7 +53,7 @@ def worker():
t.join()
# Each thread has its own iterator, so results should be entirely predictable.
self.assertEqual(results, [NUMITEMS] * NUMTHREADS)

def test_shared_iterator(self):
"""Test iteration over a shared iterator"""
seq = self.make_testdata(NUMITEMS)
Expand Down
Loading
0