Package: pandas
Version: 0.15.1+git125-ge463818-1
Severity: serious
Tags: sid + patch
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hello,

Package  FTBFS on big-endian builds:
https://buildd.debian.org/status/package.php?p=pandas&suite=sid

With following message:

======================================================================
FAIL: test_to_records (pandas.tests.test_categorical.TestCategoricalAsBlock)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/«BUILDDIR»/pandas-0.15.1+git125-ge463818/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_categorical.py",
 line 2393, in test_to_records
    tm.assert_almost_equal(result,expected)
  File "das/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal 
(pandas/src/testing.c:2745)
  File "das/src/testing.pyx", line 93, in pandas._testing.assert_almost_equal 
(pandas/src/testing.c:1830)
  File "das/src/testing.pyx", line 143, in pandas._testing.assert_almost_equal 
(pandas/src/testing.c:2618)
AssertionError: (0L, 'a') != (0L, 'a')

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

With the patch attached package builds successfully on both MIPS big-endian and 
little-endian.
Patch is changing test_categorical to work with native endian instead of 
little-endian.

Same patch is available upstream:
https://github.com/pydata/pandas/pull/10438

Could you please consider including this patch?

Thank you!

Regards,
Jurica
--- pandas-0.15.1+git125-ge463818.orig/pandas/tests/test_categorical.py
+++ pandas-0.15.1+git125-ge463818/pandas/tests/test_categorical.py
@@ -2389,7 +2389,7 @@ class TestCategoricalAsBlock(tm.TestCase
         # this coerces
         result = df.to_records()
         expected = np.rec.array([(0, 'a'), (1, 'b'), (2, 'c')],
-                                dtype=[('index', '<i8'), ('0', 'O')])
+                                dtype=[('index', '=i8'), ('0', 'O')])
         tm.assert_almost_equal(result,expected)
 
     def test_numeric_like_ops(self):

Reply via email to