Skip to content

Commit

Permalink
apacheGH-41924: [Python] Fix tests when using NumPy 2.0 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Jun 11, 2024
1 parent baf4089 commit cfb30fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/appveyor-cpp-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ mamba create -n arrow -y -c conda-forge ^
"fsspec" ^
"python=%PYTHON%" ^
|| exit /B
@rem TEMP test with numpy 2.0 RC
pip install --pre --upgrade numpy || exit /B
conda list -n arrow

@rem
Expand Down
1 change: 1 addition & 0 deletions python/pyarrow/tests/parquet/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def _random_integers(size, dtype):
iinfo = np.iinfo(dtype)
return np.random.randint(max(iinfo.min, platform_int_info.min),
min(iinfo.max, platform_int_info.max),
# size=size, dtype=dtype)
size=size).astype(dtype)


Expand Down

0 comments on commit cfb30fe

Please sign in to comment.