Skip to content

Commit

Permalink
Use string as dtype.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Mar 1, 2022
1 parent e015b23 commit d7045b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/cudf/cudf/tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ def test_csv_reader_hexadecimals(pdf_dtype, gdf_dtype):

@pytest.mark.parametrize(
"np_dtype, gdf_dtype",
[("int_", "hex"), ("int32", "hex32"), ("int64", "hex64")],
[("int", "hex"), ("int32", "hex32"), ("int64", "hex64")],
)
def test_csv_reader_hexadecimal_overflow(np_dtype, gdf_dtype):
# This tests values which cause an overflow warning that will become an
Expand All @@ -1358,7 +1358,6 @@ def test_csv_reader_hexadecimal_overflow(np_dtype, gdf_dtype):

gdf = read_csv(StringIO(buffer), dtype=[gdf_dtype], names=["hex_int"])

np_dtype = getattr(np, np_dtype)
expected = np.array(values, dtype=np_dtype)
actual = gdf["hex_int"].to_numpy()
np.testing.assert_array_equal(expected, actual)
Expand Down

0 comments on commit d7045b1

Please sign in to comment.