← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1781627] Re: In Py3.7 test failures occur due to RuntimeError for StopIteration

 

Reviewed:  https://review.openstack.org/582628
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=f537389811dcc5e0ec5ee02883f75a3baa34479e
Submitter: Zuul
Branch:    master

commit f537389811dcc5e0ec5ee02883f75a3baa34479e
Author: Corey Bryant <corey.bryant@xxxxxxxxxxxxx>
Date:   Fri Jul 13 11:22:14 2018 -0400

    Handle StopIteration for Py3.7 PEP 0479
    
    Replace raise of StopIteration with return.
    
    PEP 0479, https://www.python.org/dev/peps/pep-0479/, makes the
    following change: "when StopIteration is raised inside a generator,
    it is replaced it with RuntimeError".
    And states: "If raise StopIteration occurs directly in a generator,
    simply replace it with return."
    
    Change-Id: Ia7d6af7165077aa93c76185c28c355c06a202088
    Closes-Bug: #1781627


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1781627

Title:
  In Py3.7 test failures occur due to RuntimeError for  StopIteration

Status in Glance:
  Fix Released

Bug description:
  PEP 0479 changes the behavior of generators:
  https://www.python.org/dev/peps/pep-0479/

  If a StopIteration is about to bubble out of a generator frame, it is
  replaced with RuntimeError, resulting in:

  RuntimeError: generator raised StopIteration

  Here are more detailed tracebacks from the failures:
  https://paste.ubuntu.com/p/vJJ8HRFV5f/

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1781627/+subscriptions


References