TST: Fix some test builds for numpy 2.0
Looks like some of the adjusted tests are causing some failures. Had to pin numpy on the pyarrow dev build; we can plan to tackle the test failures in that build along with the other builds once they pull in numpy 2.0 by default. Going to merge to get to green Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

1. Checkout backport branch and update it.

```
git checkout 2.2.x
git pull
```

2. Cherry pick the first parent branch of the this PR on top of the older branch:
```
git cherry-pick -x -m1 b1e5f0636ab2cc3e6949a051e37dc289616a4a4f
```

3. You will likely have some merge/cherry-pick conflict here, fix them and commit:

```
git commit -am 'Backport PR #59046: TST: Fix some test builds for numpy 2.0'
```

4. Push to a named branch:

```
git push YOURFORK 2.2.x:auto-backport-of-pr-59046-on-2.2.x
```

5. Create a PR against branch 2.2.x, I would have named this PR:

> "Backport PR #59046 on branch 2.2.x (TST: Fix some test builds for numpy 2.0)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the `Still Needs Manual Backport` label once the PR gets merged.

If these instructions are inaccurate, feel free to [suggest an improvement](https://github.com/MeeseeksBox/MeeseeksDev).
                