gh-135639: fix test_cycle test (#135662)

This commit is contained in:
Kumar Aditya 2025-06-18 22:11:35 +05:30 committed by GitHub
parent c55512311b
commit 4dea6b48cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,10 @@ class ItertoolsThreading(unittest.TestCase):
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):