Skip to content

Commit

Permalink
adapt to Windows default precision of numpy ints
Browse files Browse the repository at this point in the history
  • Loading branch information
dwierichs committed May 13, 2024
1 parent 14af78c commit bbc72d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_autoray.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,9 +880,9 @@ def test_zeros_passes_dtype_device(self, backend, dtype):
]

creation_builtins = [
(float, np.float64),
(int, np.int64),
(complex, np.complex128),
(float, [np.float64]),
(int, [np.int32, np.int64]), # np.int32 on Windows and np.int64 else
(complex, [np.complex128]),
]


Expand All @@ -891,4 +891,4 @@ def test_zeros_passes_dtype_device(self, backend, dtype):
def test_creation_with_builtins(fn, args, dtype, expected):
x = dtype(4)
y = ar.do(fn, *args, like=x)
assert y.dtype == expected
assert y.dtype in expected

0 comments on commit bbc72d4

Please sign in to comment.