[
https://issues.apache.org/jira/browse/QPIDIT-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167839#comment-15167839
]
Kim van der Riet commented on QPIDIT-23:
----------------------------------------
Initial tests show that the failure is limited to the float values of +Infinity
and -Infinity as {{0x7f800000}} and {{0xff800000}} respectively. All other
test values, including +NaN and -NaN ({{0x7fc00000}} and {{0xffc00000}}
respectively) work ok.
In this test, the float test values are represented as a string (for example,
"0x7f800000") in {{test_value}}, and are converted to a float by the Python
expression
{noformat}
float32(unpack('!f', test_value[2:].decode('hex'))[0])
{noformat}
where {{float32}} is the proton class subclassed from {{float}} which is used
to designate an AMQP 32-bit float in Python.
> [Python binding] Float type fails on RHEL7
> ------------------------------------------
>
> Key: QPIDIT-23
> URL: https://issues.apache.org/jira/browse/QPIDIT-23
> Project: Apache QPID IT
> Issue Type: Bug
> Components: Proton PythonShim
> Reporter: Kim van der Riet
> Assignee: Kim van der Riet
>
> When running on RHEL7, float type tests fail with "OverflowError: in method
> 'pn_put_float', argument 2 of type 'float'". Works ok on Fedora 22.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]