[Python-modules-team] Bug#812302: FTBFS: test suite failures

Martin Michlmayr tbm at hpe.com
Fri Jan 22 04:24:05 UTC 2016


Package: pyfits
Version: 1:3.3-7
Severity: important

pyfits fails to build in unstable for me.  Do you see this, too?

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> changing mode of build/scripts-3.5/fitscheck from 664 to 775
> changing mode of build/scripts-3.5/fitsdiff from 664 to 775
>    dh_auto_test -O--buildsystem=pybuild -O--parallel
> I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 
> .EE.EE.E.....E....E........................................................................................................................................................................................................................................................................................................................................................F...F......FF.E.......EF..................
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_ascii_table_data
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 168, in test_ascii_table_data
>     hdu.writeto(self.temp('tmp.fits'), clobber=True, checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1662, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 449, in _prewriteto
>     update_heap_pointers=not self._manages_own_heap)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 1044, in _scale_back
>     field.replace(encode_ascii('E'), encode_ascii('D'))
> AttributeError: 'numpy.ndarray' object has no attribute 'replace'
> 
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_binary_table_data
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 128, in test_binary_table_data
>     tbhdu.writeto(self.temp('tmp.fits'), clobber=True, checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1662, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 475, in _prewriteto
>     return super(_TableBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 702, in _calculate_datasum
>     return self._calculate_datasum_with_heap(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 672, in _calculate_datasum_with_heap
>     csum = self._compute_checksum(dout, blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_compressed_image_data_float32
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 231, in test_compressed_image_data_float32
>     comp_hdu.writeto(self.temp('tmp.fits'), checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1662, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/compressed.py", line 1805, in _prewriteto
>     inplace=inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 475, in _prewriteto
>     return super(_TableBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 702, in _calculate_datasum
>     return self._calculate_datasum_with_heap(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 672, in _calculate_datasum_with_heap
>     csum = self._compute_checksum(dout, blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_compressed_image_data_int16
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 199, in test_compressed_image_data_int16
>     comp_hdu.writeto(self.temp('tmp.fits'), checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1662, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/compressed.py", line 1805, in _prewriteto
>     inplace=inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 475, in _prewriteto
>     return super(_TableBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 702, in _calculate_datasum
>     return self._calculate_datasum_with_heap(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 672, in _calculate_datasum_with_heap
>     csum = self._compute_checksum(dout, blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_groups_hdu_data
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 113, in test_groups_hdu_data
>     hdu.writeto(self.temp('tmp.fits'), clobber=True, checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 365, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/image.py", line 467, in _prewriteto
>     return super(_ImageBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/groups.py", line 513, in _calculate_datasum
>     blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/groups.py", line 196, in __getitem__
>     out = super(GroupData, self).__getitem__(key)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/groups.py", line 189, in __array_finalize__
>     super(GroupData, self).__array_finalize__(obj)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/148, part
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 378, in test_open_update_mode_update_checksum
>     hdul[1].data[0]['TIME'] = 42
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 227, in __exit__
>     self.close()
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 680, in close
>     self.flush(output_verify=output_verify, verbose=verbose)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/util.py", line 323, in wrapped
>     func(*args, **kwargs)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 574, in flush
>     self._flush_update()
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 893, in _flush_update
>     hdu._prewriteto(checksum=hdu._output_checksum, inplace=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 475, in _prewriteto
>     return super(_TableBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 702, in _calculate_datasum
>     return self._calculate_datasum_with_heap(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 672, in _calculate_datasum_with_heap
>     csum = self._compute_checksum(dout, blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: pyfits.tests.test_checksum.TestChecksumFunctions.test_variable_length_table_data
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_checksum.py", line 145, in test_variable_length_table_data
>     tbhdu.writeto(self.temp('tmp.fits'), clobber=True, checksum=True)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1662, in writeto
>     checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/hdulist.py", line 650, in writeto
>     hdu._prewriteto(checksum=checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 475, in _prewriteto
>     return super(_TableBaseHDU, self)._prewriteto(checksum, inplace)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 483, in _prewriteto
>     self._update_checksum(checksum)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 540, in _update_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1313, in add_checksum
>     datasum_keyword=datasum_keyword)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1263, in add_datasum
>     cs = self._calculate_datasum(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 702, in _calculate_datasum
>     return self._calculate_datasum_with_heap(blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/table.py", line 672, in _calculate_datasum_with_heap
>     csum = self._compute_checksum(dout, blocking=blocking)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/hdu/base.py", line 1517, in _compute_checksum
>     sum32 = self._compute_hdu_checksum(data[i:i + length], sum32)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 551, in __getslice__
>     return self[slice(start, end)]
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 488, in __getitem__
>     out = self.view(np.recarray).__getitem__(key).view(subtype)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/fitsrec.py", line 249, in __array_finalize__
>     self._nfields = len(obj.dtype.names)
> TypeError: object of type 'NoneType' has no len()
> 
> ======================================================================
> ERROR: Regression test for
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 1763, in test_new_table_with_nd_column
>     assert (h[1].data['str'].encode('ascii') == arra).all()
> AttributeError: 'numpy.ndarray' object has no attribute 'encode'
> 
> ======================================================================
> ERROR: Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/201
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 1724, in test_string_array_round_trip
>     recarr.field(0)[0].decode('ascii')).all()
> AttributeError: 'numpy.ndarray' object has no attribute 'decode'
> 
> ======================================================================
> FAIL: A simple test of the dump/load methods; dump the data, column, and
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 1881, in test_dump_load_round_trip
>     assert comparerecords(tbhdu.data, new_tbhdu.data)
> AssertionError: 
> -------------------- >> begin captured stdout << ---------------------
> fielda:  ['NGC1001' 'NGC1002' 'NGC1003']
> fieldb:  ['NGC1001             ' 'NGC1002             ' 'NGC1003             ']
> field 0 differs
> 
> --------------------- >> end captured stdout << ----------------------
> 
> ======================================================================
> FAIL: Tests loading a table dump with no supplied coldefs or header, so that
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 1946, in test_load_guess_format
>     assert comparerecords(tbhdu.data, new_tbhdu.data)
> AssertionError: 
> -------------------- >> begin captured stdout << ---------------------
> fielda:  ['a' 'abc' 'ab']
> fieldb:  ['a  ' 'abc' 'ab ']
> field 4 differs
> 
> --------------------- >> end captured stdout << ----------------------
> 
> ======================================================================
> FAIL: Tests creating a new FITS_rec object from a multi-field ndarray.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 459, in test_new_fitsrec
>     assert repr(appended).startswith('FITS_rec(')
> AssertionError
> 
> ======================================================================
> FAIL: pyfits.tests.test_table.TestTableFunctions.test_new_table_from_recarray
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 431, in test_new_table_from_recarray
>     assert hdul[1].data[0][1] == 'Serius'
> AssertionError
> 
> ======================================================================
> FAIL: pyfits.tests.test_table.TestTableFunctions.test_string_column_padding
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pyfits/tests/test_table.py", line 1630, in test_string_column_padding
>     assert (hdul[1].data['MEMNAME'] == a).all()
> AssertionError
> 
> ----------------------------------------------------------------------
> Ran 405 tests in 13.825s
> 
> FAILED (errors=9, failures=5)
> E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose 

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Python-modules-team mailing list