Skip to content

Commit 5f84c9e

Browse files
committed
xfail test_small_regressions
1 parent 8fb1a61 commit 5f84c9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,12 @@ def __array__(self):
485485
assert_(isinstance(a[z, np.array(0)], np.ndarray))
486486
assert_(isinstance(a[z, ArrayLike()], np.ndarray))
487487

488+
@pytest.mark.xfail(
489+
reason=(
490+
"torch does not support integer indexing int tensors with uints - "
491+
"uint8 tensor indexes are treated as boolean masks (deprecated)"
492+
)
493+
)
488494
def test_small_regressions(self):
489495
# Reference count of intp for index checks
490496
a = np.array([0])

0 commit comments

Comments
 (0)