Skip to content

Commit 8fb1a61

Browse files
committed
xfail test_scalar_return_type
1 parent 6b76097 commit 8fb1a61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def test_memory_order(self):
450450
a = a.reshape(-1, 1)
451451
assert_(a[b, 0].flags.f_contiguous)
452452

453+
@pytest.mark.xfail(reason="torch has no type distinct from a 0-d array")
453454
def test_scalar_return_type(self):
454455
# Full scalar indices should return scalars and object
455456
# arrays should not call PyArray_Return on their items
@@ -643,6 +644,7 @@ def test_nontuple_ndindex(self):
643644

644645

645646
class TestFieldIndexing:
647+
@pytest.mark.xfail(reason="torch has no type distinct from a 0-d array")
646648
def test_scalar_return_type(self):
647649
# Field access on an array should return an array, even if it
648650
# is 0-d.

0 commit comments

Comments
 (0)