We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f8a4c commit 5e6271dCopy full SHA for 5e6271d
dpctl/tests/test_usm_ndarray_ctor.py
@@ -1798,7 +1798,10 @@ def test_full_gh_1230(dt):
1798
dt_maxint = dpt.iinfo(dtype).max
1799
1800
if (dtype.itemsize < 8) and (np.lib.NumpyVersion(np.__version__) < "2.0.0"):
1801
- X = dpt.full(1, fill_value=(dt_maxint + 1), dtype=dt)
+ try:
1802
+ X = dpt.full(1, fill_value=(dt_maxint + 1), dtype=dt)
1803
+ except OverflowError:
1804
+ pytest.skip("Expected OverflowError raised")
1805
Y = dpt.full_like(X, fill_value=dpt.iinfo(dt).min)
1806
assert dpt.all(X == Y)
1807
else:
0 commit comments