yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57279
[Bug 1629460] [NEW] python35 values for http status codes not ints
Public bug reported:
The values of Python 3.5 http status codes via http_client.OK, for
example, are enums not ints like in py27 and py35. This can cause
potential trouble and the unit tests are catching the difference.
Python 2.7/3.4
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
400
Python 3.5
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
<HTTPStatus.BAD_REQUEST: 400>
https://bitbucket.org/gutworth/six/issues/161/inconsistent-value-returned-from
https://bugs.python.org/issue26123
** Affects: keystone
Importance: Undecided
Assignee: Eric Brown (ericwb)
Status: New
** Changed in: keystone
Assignee: (unassigned) => Eric Brown (ericwb)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1629460
Title:
python35 values for http status codes not ints
Status in OpenStack Identity (keystone):
New
Bug description:
The values of Python 3.5 http status codes via http_client.OK, for
example, are enums not ints like in py27 and py35. This can cause
potential trouble and the unit tests are catching the difference.
Python 2.7/3.4
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
400
Python 3.5
>>> from six.moves import http_client
>>> http_client.BAD_REQUEST
<HTTPStatus.BAD_REQUEST: 400>
https://bitbucket.org/gutworth/six/issues/161/inconsistent-value-returned-from
https://bugs.python.org/issue26123
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1629460/+subscriptions
Follow ups