mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-135639: fix test_cycle test (#135662)
This commit is contained in:
parent
c55512311b
commit
4dea6b48cc
1 changed files with 4 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ class ItertoolsThreading(unittest.TestCase):
|
||||||
def work(it):
|
def work(it):
|
||||||
barrier.wait()
|
barrier.wait()
|
||||||
for _ in range(number_of_cycles):
|
for _ in range(number_of_cycles):
|
||||||
_ = next(it)
|
try:
|
||||||
|
next(it)
|
||||||
|
except StopIteration:
|
||||||
|
pass
|
||||||
|
|
||||||
data = (1, 2, 3, 4)
|
data = (1, 2, 3, 4)
|
||||||
for it in range(number_of_iterations):
|
for it in range(number_of_iterations):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue