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
Reviewed: https:/ /review. openstack. org/585886 /git.openstack. org/cgit/ openstack/ oslo.serializat ion/commit/ ?id=254e0ae839e cc692192f29e3aa 590e6d5d3377a7
Committed: https:/
Submitter: Zuul
Branch: master
commit 254e0ae839ecc69 2192f29e3aa590e 6d5d3377a7
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: I45bdf565e17079 3d0342a90762863 8369d4d0f2f
Closes-Bug: #1783638