mirror of
https://github.com/python/cpython.git
synced 2025-12-22 08:29:12 +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):
|
||||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue