Author: Romain Guillebert <[email protected]>
Branch: numpy-pickle
Changeset: r62610:b13ea8b17e8b
Date: 2013-03-21 18:23 +0100
http://bitbucket.org/pypy/pypy/changeset/b13ea8b17e8b/
Log: Add a failing test for record dtypes
diff --git a/pypy/module/micronumpy/test/test_dtypes.py
b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -275,7 +275,13 @@
from cPickle import loads, dumps
a = array([1,2,3])
assert a.dtype.__reduce__() == (dtype, ('i8', 0, 1), (3, '<', None,
None, None, -1, -1, 0))
- import pdb; pdb.set_trace()
+ assert loads(dumps(a.dtype)) == a.dtype
+
+ def test_pickle_record(self):
+ from numpypy import array, dtype
+ from cPickle import loads, dumps
+ skip("TODO")
+ a = array(([0, 0], [0, 0]), dtype=[('x', '<i8', (2,)), ('y', '<i4',
(2,))])
assert loads(dumps(a.dtype)) == a.dtype
class AppTestTypes(BaseAppTestDtypes):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit