Package: python-oslo.serialization / 2.27.0-2

Metadata

Package Version Patches format
python-oslo.serialization 2.27.0-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
py37 deal with Exception repr changes.patch | (download)

oslo_serialization/tests/test_jsonutils.py | 10 6 + 4 - 0 !
1 file changed, 6 insertions(+), 4 deletions(-)

 [patch] 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 for
notification middleware.

Bug: #1783638