[New-bugs-announce] [issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]
Peter Bray
report at bugs.python.org
Fri May 15 10:49:09 CEST 2009
New submission from Peter Bray <pdb_ml at yahoo.com.au>:
Greetings,
I have downloaded and compiled Python 3.1b1 on Solaris 10 Update 6
with GCC 4.1.2 on {SPARC,x86} x {32-bit,64-bit} and encountered only one
test harness failure, which was on SPARC 64-bit.
Included below are the initial details, is there something more I can
do to assist, if so, please be specific.
Regards,
Peter
./python Lib/test/regrtest.py -v test_ctypes
======================================================================
FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/64-bit/Python-3.1b1/Lib/ctypes/test/test_callbacks.py",
line 81, in test_longdouble
self.check_type(c_longdouble, 3.14)
File "/tmp/64-bit/Python-3.1b1/Lib/ctypes/test/test_callbacks.py",
line 30, in check_type
self.failUnlessEqual(self.got_args, (-3, arg))
AssertionError: First differing element 1:
0.0
3.14
- (-3, 0.0)
+ (-3, 3.14)
----------------------------------------------------------------------
Ran 328 tests in 3.853s
FAILED (failures=1)
test test_ctypes failed -- Traceback (most recent call last):
File "/tmp/64-bit/Python-3.1b1/Lib/ctypes/test/test_callbacks.py",
line 81, in test_longdouble
self.check_type(c_longdouble, 3.14)
File "/tmp/64-bit/Python-3.1b1/Lib/ctypes/test/test_callbacks.py",
line 30, in check_type
self.failUnlessEqual(self.got_args, (-3, arg))
AssertionError: First differing element 1:
0.0
3.14
- (-3, 0.0)
+ (-3, 3.14)
1 test failed:
test_ctypes
The test code (from Python-3.1b1/Lib/ctypes/test/test_callbacks.py)
79
80 def test_longdouble(self):
81 self.check_type(c_longdouble, 3.14)
82 self.check_type(c_longdouble, -3.14)
83
and ealier in the same file
11
12 def callback(self, *args):
13 self.got_args = args
14 return args[-1]
15
16 def check_type(self, typ, arg):
17 PROTO = self.functype.__func__(typ, typ)
18 result = PROTO(self.callback)(arg)
19 if typ == c_float:
20 self.failUnlessAlmostEqual(result, arg, places=5)
21 else:
22 self.failUnlessEqual(self.got_args, (arg,))
23 self.failUnlessEqual(result, arg)
24
25 PROTO = self.functype.__func__(typ, c_byte, typ)
26 result = PROTO(self.callback)(-3, arg)
27 if typ == c_float:
28 self.failUnlessAlmostEqual(result, arg, places=5)
29 else:
30 self.failUnlessEqual(self.got_args, (-3, arg))
31 self.failUnlessEqual(result, arg)
32
[software at specula] 64-bit SPARC % gcc -v
Using built-in specs.
Target: sparc64-sun-solaris2.10
Configured with: ../configure --prefix=/pkgs/64-bit/release/gcc-4.1.2
--with-local-prefix=/pkgs/64-bit --disable-nls --disable-multilib
--enable-shared --with-as=/usr/ccs/bin/as --without-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --with-gmp=/pkgs/64-bit
--with-mpfr=/pkgs/64-bit --enable-languages=c,c++,objc,obj-c++,fortran
sparc64-sun-solaris2.10
Thread model: posix
gcc version 4.1.2
[software at specula] 64-bit SPARC % cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
Build Procedure
---------------
Python 3.1b1
## Note PKGS_PREFIX=/pkgs/64-bit and PKGS_RELEASE=/pkgs/64-bit/release
gtar fxv <path>/Python-3.1b1.tar.bz2
cd Python-3.1b1
# The CPPFLAGS & LDFLAGS are used by setup.py in external modules builds
CPPFLAGS="-I${PKGS_PREFIX}/include" LDFLAGS="-L${PKGS_PREFIX}/lib"
./configure --prefix=${PKGS_RELEASE}/Python-3.1b1
--datarootdir=${PKGS_RELEASE}/Python-3.1b1 --with-universal-archs=64-bit
echo "crypt cryptmodule.c" >> Modules/Setup.local ## Solaris does not
need -lcrypt
gmake
gmake test
----------
assignee: theller
components: Tests, ctypes
messages: 87798
nosy: illumino, theller
severity: normal
status: open
title: FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6029>
_______________________________________
More information about the New-bugs-announce
mailing list