Skip to content

Commit

Permalink
one more test which should work on CI (linux) even if it's buggy on W…
Browse files Browse the repository at this point in the history
…indows
  • Loading branch information
gdementen committed Sep 13, 2023
1 parent c92ebca commit b0d65f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion larray/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3828,7 +3828,11 @@ def test_to_series():
assert res.equals(expected)

# test for issue #1061 (object dtype labels array produce warning with Pandas1.4+)
# for some reason, under Linux, int32 -> int64 in with_total or to_series()
# for some reason, under Linux, int32 array.with_total() results in a int64 array, so it is
# easier to just use a int64 array in the first place so that the test works on
# both Windows and Linux
total = ndtest(3, dtype=np.int32).sum()
assert type(total) is np.int64
arr = ndtest("a=1..3", dtype=np.int32).with_total()[:3]
assert arr.dtype.type is np.int64
res = arr.to_series()
Expand Down

0 comments on commit b0d65f5

Please sign in to comment.