Message109107
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. |
|
Date |
User |
Action |
Args |
2010-07-02 12:51:31 | jengelh | set | recipients:
+ jengelh |
2010-07-02 12:51:31 | jengelh | set | messageid: <1278075091.72.0.569096323766.issue9143@psf.upfronthosting.co.za> |
2010-07-02 12:51:30 | jengelh | link | issue9143 messages |
2010-07-02 12:51:29 | jengelh | create | |
|