On Mon, Jun 13, 2011 at 07:27:07PM +0200, Samir SAADA wrote:
> Hi,
> with this patch I can compile pyhton 2.7 on loongson,
> the same modifications are used in devel/libffi,
> I don't know if there are side effects on ctypes though.
> 
> regress test "ok":
> test_ctypes
> /usr/obj/pobj/Python-2.7.1/Python-2.7.1/Lib/ctypes/util.py:180: 
> DeprecationWarning: the cmp argument is not supported in 3.x
>   res.sort(cmp= lambda x,y: cmp(_num_version(x), _num_version(y)))
> *** Signal 10

woops I missed this one regress test:

test test_cmath failed -- Traceback (most recent call last):
  File "/usr/obj/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_cmath.py", line 
350, in test_specific_values
    msg=error_message)
  File "/usr/obj/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_cmath.py", line 
112, in rAssertAlmostEqual
    '{!r} and {!r} are not sufficiently close'.format(a, b))
AssertionError: log0010: log(complex(-1e-323, 0.0))
Expected: complex(-743.7469247408213, 3.141592653589793)
Received: complex(inf, 3.141592653589793)
Received value insufficiently close to expected value.

Reply via email to