New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 tests fail on Big Endian on 0.27.3 #1982

Open
ignatenkobrain opened this Issue Nov 6, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@ignatenkobrain
Contributor

ignatenkobrain commented Nov 6, 2017

======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/builddir/build/BUILD/cython-0.27.3/TEST_TMP/run/c/numpy_subarray/numpy_subarray.so", line 447, in numpy_subarray
----------------------------------------------------------------------
File "/builddir/build/BUILD/cython-0.27.3/TEST_TMP/run/c/numpy_subarray/numpy_subarray.so", line 450, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError
======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/builddir/build/BUILD/cython-0.27.3/TEST_TMP/run/cpp/numpy_subarray/numpy_subarray.so", line 146, in numpy_subarray
----------------------------------------------------------------------
File "/builddir/build/BUILD/cython-0.27.3/TEST_TMP/run/cpp/numpy_subarray/numpy_subarray.so", line 149, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError
----------------------------------------------------------------------

Happens only on ppc64 and s390x which are BE.

@scoder

This comment has been minimized.

Show comment
Hide comment
@scoder

scoder Nov 6, 2017

Contributor

Thanks for the report. Could you retry it with the latest master? I added output to the assertions so that we can actually see what is wrong here. Interesting enough, that test has been around since 2013. Since I don't have such a system available, any debugging information that you could provide would be appreciated.

Contributor

scoder commented Nov 6, 2017

Thanks for the report. Could you retry it with the latest master? I added output to the assertions so that we can actually see what is wrong here. Interesting enough, that test has been around since 2013. Since I don't have such a system available, any debugging information that you could provide would be appreciated.

@tobihan

This comment has been minimized.

Show comment
Hide comment
@tobihan

tobihan Jun 7, 2018

Hi,
this test is still failing with cython 0.28.2 on big endian architectures (mips, hppa, powerpc, ppc64, sparc64), see https://buildd.debian.org/status/package.php?p=cython&suite=experimental&ver=0.28.2-2 for the build logs.

======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/<<PKGBUILDDIR>>/build/work-dir/0/run/c/numpy_subarray/numpy_subarray.so", line 488, in numpy_subarray

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/build/work-dir/0/run/c/numpy_subarray/numpy_subarray.so", line 491, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError: {'a': (dtype('int32'), 0), 'b': (dtype(('>f8', (3, 3))), 4)}


======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/<<PKGBUILDDIR>>/build/work-dir/0/run/cpp/numpy_subarray/numpy_subarray.so", line 401, in numpy_subarray

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/build/work-dir/0/run/cpp/numpy_subarray/numpy_subarray.so", line 404, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError: {'a': (dtype('int32'), 0), 'b': (dtype(('>f8', (3, 3))), 4)}

tobihan commented Jun 7, 2018

Hi,
this test is still failing with cython 0.28.2 on big endian architectures (mips, hppa, powerpc, ppc64, sparc64), see https://buildd.debian.org/status/package.php?p=cython&suite=experimental&ver=0.28.2-2 for the build logs.

======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/<<PKGBUILDDIR>>/build/work-dir/0/run/c/numpy_subarray/numpy_subarray.so", line 488, in numpy_subarray

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/build/work-dir/0/run/c/numpy_subarray/numpy_subarray.so", line 491, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError: {'a': (dtype('int32'), 0), 'b': (dtype(('>f8', (3, 3))), 4)}


======================================================================
FAIL: numpy_subarray ()
Doctest: numpy_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for numpy_subarray
  File "/<<PKGBUILDDIR>>/build/work-dir/0/run/cpp/numpy_subarray/numpy_subarray.so", line 401, in numpy_subarray

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/build/work-dir/0/run/cpp/numpy_subarray/numpy_subarray.so", line 404, in numpy_subarray
Failed example:
    test_record_subarray()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest numpy_subarray[0]>", line 1, in <module>
        test_record_subarray()
      File "tests/run/numpy_subarray.pyx", line 23, in numpy_subarray.test_record_subarray
        assert descr.fields == {'a': (py_numpy.dtype('int32'), 0),
    AssertionError: {'a': (dtype('int32'), 0), 'b': (dtype(('>f8', (3, 3))), 4)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment