TST: Fix two failing tests on Windows #10631
I spotted two failing tests with errors similar to what described @chris-b1 in #10631:

```
Attribute "dtype" are different
[left]:  int32
[right]: int64
```

This PR fixes this on windows.
