You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertx_like.dtype==xp.bool, f"{fill_value=}, but full_like() did not produce a boolean array - instead was {x_like.dtype}"
180
-
elifisinstance(fill_value, int):
181
-
assertx_like.dtypein (xp.int32, xp.int64), f"{fill_value=}, but full_like() did not produce a int32 or int64 array - instead was {x_like.dtype}"
182
-
elifisinstance(fill_value, float):
183
-
assertx_like.dtypein (xp.float32, xp.float64), f"{fill_value=}, but full_like() did not produce a float32 or float64 array - instead was {x_like.dtype}"
184
-
else:
185
-
raiseException(f"Sanity check failed, indiciating a bug in the test suite. {fill_value=} - should be a bool, int or float")
170
+
assertx_like.dtype==x.dtype, f"{x.dtype=}, but full_like() did not produce a {x.dtype} array - instead was {x_like.dtype}"
186
171
else:
187
-
assertx_like.dtype==dtype
172
+
assertx_like.dtype==None, f"{dtype=}, but full_like() did not produce a {dtype} array - instead was {x_like.dtype}"
188
173
189
174
assertx_like.shape==x.shape, "full_like() produced an array with incorrect shape"
0 commit comments