Skip to content

Commit 3d78a42

Browse files
committed
xfail test_non_integer_sequence_multiplication
1 parent eff9f58 commit 3d78a42

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def test_empty_tuple_index(self):
117117
assert_equal(a[()], a)
118118
assert_(a[()].base is a)
119119
a = np.array(0)
120-
pytest.xfail("torch_np does not have scalars")
120+
pytest.xfail(
121+
"torch doesn't have scalar types with distinct instancing behaviours"
122+
)
121123
assert_(isinstance(a[()], np.int_))
122124

123125
@pytest.mark.xfail(reason="torch does not have an equivalent to np.void")
@@ -1343,6 +1345,11 @@ def test_non_integer_argument_errors(self):
13431345
assert_raises(TypeError, np.take, a, [0], 1.)
13441346
assert_raises(TypeError, np.take, a, [0], np.float64(1.))
13451347

1348+
@pytest.mark.xfail(
1349+
reason=(
1350+
"torch doesn't have scalar types with distinct element-wise behaviours"
1351+
)
1352+
)
13461353
def test_non_integer_sequence_multiplication(self):
13471354
# NumPy scalar sequence multiply should not work with non-integers
13481355
def mult(a, b):

0 commit comments

Comments
 (0)