Py3.7 test failures

Bug #1784714 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-glareclient
Fix Released
Undecided
Ralf Haferkamp

Bug Description

I'm hitting 3 test failures with Py3.7 on Ubuntu Cosmic, as can bee seen here: https://paste.ubuntu.com/p/N6VDRGJmKK/

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glareclient (master)

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

Changed in python-glareclient:
assignee: nobody → Corey Bryant (corey.bryant)
status: New → In Progress
Changed in python-glareclient:
assignee: Corey Bryant (corey.bryant) → Ralf Haferkamp (rhafer)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glareclient (master)

Reviewed: https://review.opendev.org/587628
Committed: https://git.openstack.org/cgit/x/python-glareclient/commit/?id=b1364646f78cf9e24ca9f74a7af093d240c094c0
Submitter: Zuul
Branch: master

commit b1364646f78cf9e24ca9f74a7af093d240c094c0
Author: Corey Bryant <email address hidden>
Date: Tue Jul 31 17:10:20 2018 -0400

    python3 compatibility for failing unit tests

    Handle StopIteration for Py3.7. 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."

    Also fix test cases that make assumptions about the ordering of
    **kwargs. Python, up to 3.6, doesn't preserve any ordering for those.
    And the behavior differs between various Python versions.
    For details see PEP 0468 (https://www.python.org/dev/peps/pep-0468/)

    Change-Id: I9847053534ffd47c4559d504be647be0de25b651
    Closes-Bug: #1784714
    Closes-Bug: #1711469

Changed in python-glareclient:
status: In Progress → Fix Released
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.