This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jengelh
Recipients jengelh
Date 2010-07-02.12:51:29
SpamBayes Score 0.017222708
Marked as misclassified No
Message-id <1278075091.72.0.569096323766.issue9143@psf.upfronthosting.co.za>
In-reply-to
Content
When python is compiled with sparc64 settings (i.e. -m64), test_ctypes fails. I am not sure why this does not show up with -m32.

ares:/usr/src/packages/BUILD/Python-2.6.5> LD_LIBRARY_PATH=/usr/src/packages/BUILD/Python-2.6.5 ./python -E -tt ./Lib/test/regrtest.py -s test_ctypes
test_ctypes
test test_ctypes failed -- Traceback (most recent call last):
  File "/usr/src/packages/BUILD/Python-2.6.5/Lib/ctypes/test/test_callbacks.py", line 81, in test_longdouble
    self.check_type(c_longdouble, 3.14)
  File "/usr/src/packages/BUILD/Python-2.6.5/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.failUnlessEqual(self.got_args, (-3, arg))
AssertionError: (-3, 0.0) != (-3, 3.1400000000000001)

When using "long double x = 3.14", the constant 3.14 is taken as a double, which is then converted to long double. Of course it isn't accurate. There must be something in python that doesn't generate this correctly; it should have been "long double x = 3.14L", since only the constant 3.14L expands to the full longdouble pi.
History
Date User Action Args
2010-07-02 12:51:31jengelhsetrecipients: + jengelh
2010-07-02 12:51:31jengelhsetmessageid: <1278075091.72.0.569096323766.issue9143@psf.upfronthosting.co.za>
2010-07-02 12:51:30jengelhlinkissue9143 messages
2010-07-02 12:51:29jengelhcreate