A Tuesday 31 August 2010 13:47:28 Jan Strube escrigué:
> Hi,
> 
> I just came across a post about the failure of tables.test() in v2.2 and
> above.
> I must say that I can reproduce the problem on Ubuntu. I'm pretty sure that
> I didn't have that problem with v2.1.
> 
> Cheers,
>     Jan
> 
> PyTables version:  2.2
> HDF5 version:      1.6.6
> NumPy version:     2.0.0.dev8674
> Numexpr version:   1.4 (not using Intel's VML/MKL)
> Zlib version:      1.2.3.3 (in Python interpreter)
> LZO version:       2.03 (Apr 30 2008)
> BZIP2 version:     1.0.5 (10-Dec-2007)
> Blosc version:     1.0 (2010-07-01)
> Python version:    2.6.4 (r264:75706, Nov  2 2009, 14:44:17)
> [GCC 4.4.1]
> Platform:          linux2-x86_64
> Byte-ordering:     little
> Detected cores:    2
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> = Performing the complete test suite!
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =
>  ..........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ............................FF.....FF...FF.................................
> ....................................F.....................F................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> ...........................................................................
> .........................................................................
>  ======================================================================
>  FAIL: Reopening a file with tables using enumerated data.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 226, in test00a_reopen
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: test00b_reopenMD (tables.tests.test_enum.EnumTableTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 242, in test00b_reopenMD
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: Reopening a file with extendable arrays using enumerated data.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 403, in test00a_reopen
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: test00b_reopenMD (tables.tests.test_enum.EnumEArrayTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 421, in test00b_reopenMD
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: Reopening a file with variable-length arrays using enumerated data.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 503, in test00a_reopen
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: test00b_reopenMD (tables.tests.test_enum.EnumVLArrayTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/test_enum.py", line
> 521, in test00b_reopenMD
>     "Enumerated type was not restored correctly from disk.")
> AssertionError: Enumerated type was not restored correctly from disk.
> 
> ======================================================================
> FAIL: Checking representation of a nested Table
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File
> "/home/jstrube/Downloads/tables-2.2/tables/tests/test_nestedtypes.py", line
> 701, in test00a_repr
>     """)
> AssertionError
> 
> ======================================================================
> FAIL: test (tables.tests.test_hdf5compat.EnumTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jstrube/Downloads/tables-2.2/tables/tests/common.py", line
> 248, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File
>  "/home/jstrube/Downloads/tables-2.2/tables/tests/test_hdf5compat.py", line
>  45, in test
>     self._test()
>   File
>  "/home/jstrube/Downloads/tables-2.2/tables/tests/test_hdf5compat.py", line
>  67, in _test
>     self.assertEqual(enum, expectedEnum)
> AssertionError: Enum({'\x01': 4}) != Enum({'BLUE': 2, 'BLACK': 4, 'WHITE':
> 3, 'GREEN': 1, 'RED': 0})
> 
> ----------------------------------------------------------------------
> Ran 4347 tests in 344.385s
> 
> FAILED (failures=8)

Yup.  Seems a problem with the recent implementation of Unicode in Cython.  
I've implemented a workaround for this in PyTables.  See:

http://pytables.org/trac/ticket/293

Cheers,

-- 
Francesc Alted

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to