Fix the StopIteration error for py37

Bug #1837856 reported by wanghao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Undecided
wanghao

Bug Description

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.

wanghao (wanghao749)
Changed in zaqar:
assignee: nobody → wanghao (wanghao749)
milestone: none → next
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

Fix proposed to branch: master
Review: https://review.opendev.org/672667

Changed in zaqar:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.opendev.org/672667
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=b63d025135f0755bd5b1bd311146a88289305410
Submitter: Zuul
Branch: master

commit b63d025135f0755bd5b1bd311146a88289305410
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.
    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.

    Change-Id: I003be4193944bc4176768c488f2f71b58fcbd58d
    Closes-Bug: #1837856
    Story: #2005924
    Task: #34258

Changed in zaqar:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zaqar 9.0.0.0rc1

This issue was fixed in the openstack/zaqar 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.