On Wed, May 6, 2009 at 12:21 PM, Dag Sverre Seljebotn
<[email protected]> wrote:

> Could you try again with current cython-devel at some point? I believe
> this should be fixed now but obviously it should be tested on a PPC.

Using changeset 2028:1377b8aff3a1 from cython-devel.

$ uname -a
Darwin ksmith.physics.wisc.edu 8.11.0 Darwin Kernel Version 8.11.0:
Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power
Macintosh powerpc

$ python -V
Python 2.5.2

$ python runtests.py -vv

Yields 3 failures and 7 errors.  None seem related to the endianness
issues; the 7 errors are related to recent fixes to Buffer.py.

I'm attaching the full output -- copied here are just the failure summaries:

======================================================================
FAIL: Doctest: cdef_setitem_T284
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 2128, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for cdef_setitem_T284
  File 
"/Users/ksmith/Devel/cython/cython-devel/BUILD/run/c/cdef_setitem_T284.so",
line unknown line number, in cdef_setitem_T284

----------------------------------------------------------------------
File "/Users/ksmith/Devel/cython/cython-devel/BUILD/run/c/cdef_setitem_T284.so",
line ?, in cdef_setitem_T284
Failed example:
    test_list(range(11), "invalid index", None)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: list indices must be integers, not str
Got:
    Traceback (most recent call last):
      File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest cdef_setitem_T284[3]>", line 1, in <module>
        test_list(range(11), "invalid index", None)
      File "cdef_setitem_T284.pyx", line 26, in
cdef_setitem_T284.test_list (cdef_setitem_T284.c:606)
    TypeError: list indices must be integers


======================================================================
FAIL: Doctest: cdef_setitem_T284
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 2128, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for cdef_setitem_T284
  File 
"/Users/ksmith/Devel/cython/cython-devel/BUILD/run/cpp/cdef_setitem_T284.so",
line unknown line number, in cdef_setitem_T284

----------------------------------------------------------------------
File 
"/Users/ksmith/Devel/cython/cython-devel/BUILD/run/cpp/cdef_setitem_T284.so",
line ?, in cdef_setitem_T284
Failed example:
    test_list(range(11), "invalid index", None)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: list indices must be integers, not str
Got:
    Traceback (most recent call last):
      File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest cdef_setitem_T284[3]>", line 1, in <module>
        test_list(range(11), "invalid index", None)
      File "cdef_setitem_T284.pyx", line 26, in
cdef_setitem_T284.test_list (cdef_setitem_T284.cpp:606)
    TypeError: list indices must be integers


======================================================================
FAIL: Doctest: numpy_test
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 2128, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_test
  File "/Users/ksmith/Devel/cython/cython-devel/BUILD/run/c/numpy_test.so",
line 159, in numpy_test

----------------------------------------------------------------------
File "/Users/ksmith/Devel/cython/cython-devel/BUILD/run/c/numpy_test.so",
line 326, in numpy_test
Failed example:
    test_bad_cast()
Expected:
    Traceback (most recent call last):
        ...
    ValueError: Item size of buffer (1 byte) does not match size of
'long' (8 bytes)
Got:
    Traceback (most recent call last):
      File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py",
line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_test[63]>", line 1, in <module>
        test_bad_cast()
      File "numpy_test.pyx", line 353, in numpy_test.test_bad_cast
(numpy_test.c:5123)
    ValueError: Item size of buffer (1 byte) does not match size of
'long' (4 bytes)


----------------------------------------------------------------------

Attachment: runtests.tgz
Description: GNU Zip compressed data

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to