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

Bug #1781627 reported by Corey Bryant
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Corey Bryant

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/

Changed in glance:
assignee: nobody → Corey Bryant (corey.bryant)
Revision history for this message
Peter Steele (peterbss) wrote : Re: [Bug 1781627] [NEW] In Py3.7 test failures occur due to RuntimeError for StopIteration

FOR FUCK’S SAKE!!~!!! UNSUBSCIBE ME!!!!!!

Peter Steele
<email address hidden>

> On Jul 13, 2018, at 11:29 AM, Corey Bryant <email address hidden> wrote:
>
> Public bug reported:
>
> 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/
>
> ** Affects: glance
> Importance: Undecided
> Assignee: Corey Bryant (corey.bryant)
> Status: New
>
> ** Changed in: glance
> Assignee: (unassigned) => Corey Bryant (corey.bryant)
>
> --
> You received this bug notification because you are subscribed to Glance.
> Matching subscriptions: peterbs
> https://bugs.launchpad.net/bugs/1781627
>
> Title:
> In Py3.7 test failures occur due to RuntimeError for StopIteration
>
> Status in Glance:
> New
>
> 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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/582628

Changed in glance:
status: New → In Progress
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Heya Peter. I'd look into if you asked nicely but I'm not going to waste my time. I'd recommend checking into your launchpad settings to change your subscriptions.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 18.0.0.0b1

This issue was fixed in the openstack/glance 18.0.0.0b1 development milestone.

Erno Kuvaja (jokke)
Changed in glance:
milestone: none → stein-1
Revision history for this message
Peter Steele (peterbss) wrote : Quick Favor?

Hey,

I just signed the petition "Wrongly Convicted, SAVEDUSTINJHIGGS​.​COM help
me change the narrative." and wanted to see if you could help by adding
your name.

Our goal is to reach 1,500,000 signatures and we need more support. You can
read more and sign the petition here:

http://chng.it/bBQfgtqHwQ

Thanks!
Peter

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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