コード例 #1
0
def test_from_numpy_dtype_fails():
    x = np.zeros(2, np.dtype([('a', 'int32')]))
    CType.from_numpy_dtype(x[0].dtype)
コード例 #2
0
 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")