[issue16275] test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)
Trent Nelson
report at bugs.python.org
Thu Oct 18 15:59:39 CEST 2012
Trent Nelson added the comment:
With the latest build (from git) of libffi, tests still fail, but differently.
(These errors seem slightly less perverse than the ones pasted previously.)
======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
self.assertEqual(result, 139)
AssertionError: 138 != 139
======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
self.assertEqual(result, 139)
AssertionError: 138 != 139
======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.BasicWrapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
self.assertEqual(result, 139)
AssertionError: 138 != 139
======================================================================
FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 40, in test_ints
self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('A', 1, -1) != ('A', 1, 0)
First differing element 2:
-1
0
- ('A', 1, -1)
? ^^
+ ('A', 1, 0)
? ^
======================================================================
FAIL: test_shorts (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 47, in test_shorts
self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('M', 1, -1) != ('M', 1, 0)
First differing element 2:
-1
0
- ('M', 1, -1)
? ^^
+ ('M', 1, 0)
? ^
======================================================================
FAIL: test_byte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 36, in test_byte
self.check_type(c_byte, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)
First differing element 0:
0
42
- (0,)
+ (42,)
======================================================================
FAIL: test_char (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 91, in test_char
self.check_type(c_char, "x")
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: ('\x00',) != ('x',)
First differing element 0:
x
- ('\x00',)
? - --
+ ('x',)
======================================================================
FAIL: test_double (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 83, in test_double
self.check_type(c_double, 3.14)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0:
0
-3
- (0, 3.14)
? ^
+ (-3, 3.14)
? ^^
======================================================================
FAIL: test_int (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 50, in test_int
self.check_type(c_int, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0:
0
-3
- (0, 42)
? ^
+ (-3, 42)
? ^^
======================================================================
FAIL: test_long (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 57, in test_long
self.check_type(c_long, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0:
0
-3
- (0, 42)
? ^
+ (-3, 42)
? ^^
======================================================================
FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 87, in test_longdouble
self.check_type(c_longdouble, 3.14)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0:
0
-3
- (0, 3.14)
? ^
+ (-3, 3.14)
? ^^
======================================================================
FAIL: test_longlong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 65, in test_longlong
self.check_type(c_longlong, 5948291757245277467)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 5948291757245277467L) != (-3, 5948291757245277467L)
First differing element 0:
0
-3
- (0, 5948291757245277467L)
? ^
+ (-3, 5948291757245277467L)
? ^^
======================================================================
FAIL: test_pyobject (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 107, in test_pyobject
self.check_type(py_object, o)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, ()) != (-3, ())
First differing element 0:
0
-3
- (0, ())
? ^
+ (-3, ())
? ^^
======================================================================
FAIL: test_short (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 43, in test_short
self.check_type(c_short, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)
First differing element 0:
0
42
- (0,)
+ (42,)
======================================================================
FAIL: test_ubyte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 40, in test_ubyte
self.check_type(c_ubyte, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)
First differing element 0:
0
42
- (0,)
+ (42,)
======================================================================
FAIL: test_uint (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 54, in test_uint
self.check_type(c_uint, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0:
0
-3
- (0, 42L)
? ^ -
+ (-3, 42)
? ^^
======================================================================
FAIL: test_ulong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 61, in test_ulong
self.check_type(c_ulong, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0:
0
-3
- (0, 42L)
? ^ -
+ (-3, 42)
? ^^
======================================================================
FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 72, in test_ulonglong
self.check_type(c_ulonglong, 10955412242170339782)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 10955412242170339782L) != (-3, 10955412242170339782L)
First differing element 0:
0
-3
- (0, 10955412242170339782L)
? ^
+ (-3, 10955412242170339782L)
? ^^
======================================================================
FAIL: test_ushort (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 47, in test_ushort
self.check_type(c_ushort, 42)
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)
First differing element 0:
0
42
- (0,)
+ (42,)
======================================================================
FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 20, in test_byte
self.assertEqual(self._dll.tf_b(-126), -42)
AssertionError: 0 != -42
======================================================================
FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 26, in test_byte_plus
self.assertEqual(self._dll.tf_bb(0, -126), -42)
AssertionError: 0 != -42
======================================================================
FAIL: test_short (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 44, in test_short
self.assertEqual(self._dll.tf_h(-32766), -10922)
AssertionError: 0 != -10922
======================================================================
FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 50, in test_short_plus
self.assertEqual(self._dll.tf_bh(0, -32766), -10922)
AssertionError: 0 != -10922
======================================================================
FAIL: test_ubyte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 32, in test_ubyte
self.assertEqual(self._dll.tf_B(255), 85)
AssertionError: 0 != 85
======================================================================
FAIL: test_ubyte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 38, in test_ubyte_plus
self.assertEqual(self._dll.tf_bB(0, 255), 85)
AssertionError: 0 != 85
======================================================================
FAIL: test_ushort (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 56, in test_ushort
self.assertEqual(self._dll.tf_H(65535), 21845)
AssertionError: 0 != 21845
======================================================================
FAIL: test_ushort_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 62, in test_ushort_plus
self.assertEqual(self._dll.tf_bH(0, 65535), 21845)
AssertionError: 0 != 21845
======================================================================
FAIL: test_dllfunctions (ctypes.test.test_funcptr.CFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_funcptr.py", line 100, in test_dllfunctions
self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi")
AssertionError: '' != 'bcdefghi'
======================================================================
FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 139, in test_doubleresult
self.assertEqual(result, 21)
AssertionError: 18.0 != 21
======================================================================
FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 127, in test_floatresult
self.assertEqual(result, 21)
AssertionError: 18.0 != 21
======================================================================
FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 101, in test_intresult
self.assertEqual(result, 21)
AssertionError: 18 != 21
======================================================================
FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 151, in test_longdoubleresult
self.assertEqual(result, 21)
AssertionError: 18.0 != 21
======================================================================
FAIL: test_longlongresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 167, in test_longlongresult
self.assertEqual(result, 21)
AssertionError: 18L != 21
======================================================================
FAIL: test_wchar_parm (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 74, in test_wchar_parm
self.assertEqual(result, 139)
AssertionError: 138 != 139
======================================================================
FAIL: test_with_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 15, in test_with_prototype
self.assertEqual(strchr("abcdef", "b"), "bcdef")
AssertionError: '' != 'bcdef'
======================================================================
FAIL: test_without_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 29, in test_without_prototype
self.assertTrue(strchr("abcdef", "b"), "bcdef")
AssertionError: bcdef
======================================================================
FAIL: test_functions (ctypes.test.test_stringptr.StringPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/hg/2.7/Lib/ctypes/test/test_stringptr.py", line 51, in test_functions
self.assertEqual(strchr("abcdef", "c"), "cdef")
AssertionError: '' != 'cdef'
----------------------------------------------------------------------
Ran 340 tests in 2.567s
FAILED (failures=37, skipped=2)
----------
nosy: +theller
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16275>
_______________________________________
More information about the Python-bugs-list
mailing list