Skip to content

Commit eff9f58

Browse files
committed
xfail before use of currently-unimplemented take()
1 parent a4f41e4 commit eff9f58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ def test_non_integer_argument_errors(self):
13391339

13401340
assert_raises(TypeError, np.reshape, a, (1., 1., -1))
13411341
assert_raises(TypeError, np.reshape, a, (np.array(1.), -1))
1342+
pytest.xfail("XXX: take not implemented")
13421343
assert_raises(TypeError, np.take, a, [0], 1.)
13431344
assert_raises(TypeError, np.take, a, [0], np.float64(1.))
13441345

@@ -1370,6 +1371,7 @@ def test_bool_as_int_argument_errors(self):
13701371
# array is thus also deprecated, but not with the same message:
13711372
assert_raises(TypeError, operator.index, np.array(True))
13721373
assert_warns(DeprecationWarning, operator.index, np.True_)
1374+
pytest.xfail("XXX: take not implemented")
13731375
assert_raises(TypeError, np.take, args=(a, [0], False))
13741376

13751377
def test_boolean_indexing_weirdness(self):
@@ -1424,6 +1426,7 @@ def test_array_to_index_error(self):
14241426

14251427
assert_raises(TypeError, operator.index, np.array([1]))
14261428
assert_raises(TypeError, np.reshape, a, (a, -1))
1429+
pytest.xfail("XXX: take not implemented")
14271430
assert_raises(TypeError, np.take, a, [0], a)
14281431

14291432

0 commit comments

Comments
 (0)