https://github.com/python/cpython/commit/4dea6b48cc24aede7250534923d3ce9f9c8b87e6
commit: 4dea6b48cc24aede7250534923d3ce9f9c8b87e6
branch: main
author: Kumar Aditya <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-06-18T22:11:35+05:30
summary:
gh-135639: fix `test_cycle` test (#135662)
files:
M Lib/test/test_free_threading/test_itertools.py
diff --git a/Lib/test/test_free_threading/test_itertools.py
b/Lib/test/test_free_threading/test_itertools.py
index 8360afbf78cadd..b8663ade1d4aca 100644
--- a/Lib/test/test_free_threading/test_itertools.py
+++ b/Lib/test/test_free_threading/test_itertools.py
@@ -44,7 +44,10 @@ def test_cycle(self):
def work(it):
barrier.wait()
for _ in range(number_of_cycles):
- _ = next(it)
+ try:
+ next(it)
+ except StopIteration:
+ pass
data = (1, 2, 3, 4)
for it in range(number_of_iterations):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]