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')
Пример #3
0
def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([('a', 'int32')]))
    CType.from_numpy_dtype(x[0].dtype)
Пример #4
0
 def test_string_from_CType_classmethod(self):
     assert CType.from_numpy_dtype(np.dtype('S7')) == String(7, 'A')
Пример #5
0
def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([("a", "int32")]))
    CType.from_numpy_dtype(x[0].dtype)
Пример #6
0
 def test_string_from_CType_classmethod(self):
     assert CType.from_numpy_dtype(np.dtype("S7")) == String(7, "A")