Numpy int is equivalent to C long / int32 even on 64-bit Windows
@@ -132,7 +132,7 @@ class TestColumnInfo:
([np.int8, "i1"], np.dtype("int8"), None, False),
([np.int16, "i2"], np.dtype("int16"), None, False),
([np.int32, "i4"], np.dtype("int32"), None, False),
- ([np.int64, "i8", int], np.dtype("int64"), None, False),
+ ([np.int64, "i8"], np.dtype("int64"), None, False),
([np.float32, "f4"], np.dtype("float32"), None, False),
([np.float64, "f8", float], np.dtype("float64"), None, False),
# nullable int types
@@ -169,12 +169,10 @@ class TestColumnInfo:
def test_object_dtype(self):
self.assertColumnInfo(
- ColumnInfo.from_values(pd.Series(["hello", "world"])),
- np.dtype("<U"),
+ ColumnInfo.from_values(pd.Series(["hello", "world"])), np.dtype("<U")
)
self.assertColumnInfo(
- ColumnInfo.from_values(pd.Series([b"hello", b"world"])),
- np.dtype("S"),
+ ColumnInfo.from_values(pd.Series([b"hello", b"world"])), np.dtype("S")
)
for s in ["hello", b"world"], ["hello", 1], [b"hello", 1]:
pytest.raises(NotImplementedError, ColumnInfo.from_values, pd.Series(s))
