In Train we will switch to use py37 for tests.
There is a breaking change between Python 3.6 and 3.7
that is making it an error to raise a StopIteration exception
from a function or generator(https://www.python.org/dev/peps/pep-0479/).
So we need to fix it in code.
Reviewed: https:/ /review. opendev. org/672667 /git.openstack. org/cgit/ openstack/ zaqar/commit/ ?id=b63d025135f 0755bd5b1bd3111 46a88289305410
Committed: https:/
Submitter: Zuul
Branch: master
commit b63d025135f0755 bd5b1bd311146a8 8289305410
Author: wanghao <email address hidden>
Date: Thu Jul 25 16:58:28 2019 +0800
Fit the StopIteration for py37
In Train we will switch to use py37 for tests. /www.python. org/dev/ peps/pep- 0479/).
There is a breaking change between Python 3.6 and 3.7
that is making it an error to raise a StopIteration exception
from a function or generator(https:/
So we need to fix it in code.
Change-Id: I003be4193944bc 4176768c488f2f7 1b58fcbd58d
Closes-Bug: #1837856
Story: #2005924
Task: #34258