Build and test python package on Windows CI (#3049)

This commit is contained in:
Cheng
2026-01-24 07:22:36 +09:00
committed by GitHub
parent dc81c1503a
commit fd27829efa
10 changed files with 44 additions and 12 deletions
+5
View File
@@ -1618,6 +1618,11 @@ class TestArray(mlx_tests.MLXTestCase):
self.assertEqual(mv_mx.format, "Q", f"{mlx_dtype}{np_dtype}")
elif np_dtype == np.int64:
self.assertEqual(mv_mx.format, "q", f"{mlx_dtype}{np_dtype}")
# for windows long is 32bit and numpy returns L/l.
elif np_dtype == np.uint32 and platform.system() == "Windows":
self.assertEqual(mv_mx.format, "I", f"{mlx_dtype}{np_dtype}")
elif np_dtype == np.int32 and platform.system() == "Windows":
self.assertEqual(mv_mx.format, "i", f"{mlx_dtype}{np_dtype}")
else:
self.assertEqual(
mv_mx.format, mv_np.format, f"{mlx_dtype}{np_dtype}"