Comment 2 for bug 1783638

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

Reviewed: https://review.openstack.org/585886
Committed: https://git.openstack.org/cgit/openstack/oslo.serialization/commit/?id=254e0ae839ecc692192f29e3aa590e6d5d3377a7
Submitter: Zuul
Branch: master

commit 254e0ae839ecc692192f29e3aa590e6d5d3377a7
Author: Corey Bryant <email address hidden>
Date: Wed Jul 25 16:52:22 2018 -0400

    py37: deal with Exception repr changes

    Under Python 3.7, a trailing comma is no longer added to
    the init parameters generated by a repr() call:

        >>> repr(Exception('It Works'))
        "Exception('It Works')"

    vs

        >>> repr(Exception('It Works'))
        "Exception('It Works',)"

    Support pre and post Python 3.7 formats in test cases.

    Change-Id: I45bdf565e170793d0342a907628638369d4d0f2f
    Closes-Bug: #1783638