tests/numpy_test: enable all dtype tests
The numpy extension supports all dtypes, even on Python 2,
so remove the version check that was preventing these types
from being tested.
Related-to:
@@ -51,11 +51,6 @@ def test_dtype_roundtrip():
},
align=True,
),
- ]
-
- if not PY2:
- dtypes.extend(
- [
np.dtype([('f0', 'i4'), ('f2', 'i1')]),
np.dtype(
[
@@ -77,10 +72,11 @@ def test_dtype_roundtrip():
]
),
]
- )
for dtype in dtypes:
- assert roundtrip(dtype) == dtype
+ encoded = jsonpickle.encode(dtype)
+ decoded = jsonpickle.decode(encoded)
+ assert dtype == decoded
def test_generic_roundtrip():
