Skip to content

Commit

Permalink
Skip fastparquet tests for numpy 2 (#11103)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed May 6, 2024
1 parent 95f0704 commit 7b2a47e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dask/bytes/tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ def test_parquet(s3, engine, s3so, metadata_file):
pd = pytest.importorskip("pandas")
np = pytest.importorskip("numpy")

from dask.array.numpy_compat import NUMPY_GE_200

if NUMPY_GE_200 and engine == "fastparquet":
# https://github.com/dask/fastparquet/issues/923
pytest.skip("fastparquet doesn't work with Numpy 2")

url = "s3://%s/test.parquet" % test_bucket_name
data = pd.DataFrame(
{
Expand Down Expand Up @@ -556,6 +562,11 @@ def test_parquet_append(s3, engine, s3so):
dd = pytest.importorskip("dask.dataframe")
pd = pytest.importorskip("pandas")
np = pytest.importorskip("numpy")
from dask.array.numpy_compat import NUMPY_GE_200

if NUMPY_GE_200 and engine == "fastparquet":
# https://github.com/dask/fastparquet/issues/923
pytest.skip("fastparquet doesn't work with Numpy 2")
if dd._dask_expr_enabled():
pytest.skip("need convert string option")

Expand Down Expand Up @@ -612,6 +623,12 @@ def test_parquet_wstoragepars(s3, s3so, engine):
pd = pytest.importorskip("pandas")
np = pytest.importorskip("numpy")

from dask.array.numpy_compat import NUMPY_GE_200

if NUMPY_GE_200 and engine == "fastparquet":
# https://github.com/dask/fastparquet/issues/923
pytest.skip("fastparquet doesn't work with Numpy 2")

url = "s3://%s/test.parquet" % test_bucket_name

data = pd.DataFrame({"i32": np.array([0, 5, 2, 5])})
Expand Down

0 comments on commit 7b2a47e

Please sign in to comment.