def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([('a', 'int32')]))
    CType.from_numpy_dtype(x[0].dtype)
 def test_string_from_CType_classmethod(self):
     assert CType.from_numpy_dtype(np.dtype('S7')) == String(7, 'A')
def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([('a', 'int32')]))
    CType.from_numpy_dtype(x[0].dtype)
 def test_string_from_CType_classmethod(self):
     assert CType.from_numpy_dtype(np.dtype('S7')) == String(7, 'A')
Example #5
0
def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([("a", "int32")]))
    CType.from_numpy_dtype(x[0].dtype)
Example #6
0
 def test_string_from_CType_classmethod(self):
     assert CType.from_numpy_dtype(np.dtype("S7")) == String(7, "A")