Skip to content

Commit cefe214

Browse files
committed
TST: xfail a test with max(0D array and explicit axis)
1 parent 60cadce commit cefe214

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch_np/tests/numpy_tests/core/test_multiarray.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,6 +3997,7 @@ def test_scalar(self):
39973997
assert_raises(np.AxisError, np.amax, 1, 1)
39983998
assert_raises(np.AxisError, np.amin, 1, 1)
39993999

4000+
pytest.xfail(reason='min/max/argmin/argmax on 0D arrays & axis')
40004001
assert_equal(np.amax(1, axis=0), 1)
40014002
assert_equal(np.amin(1, axis=0), 1)
40024003
assert_equal(np.amax(1, axis=None), 1)

0 commit comments

Comments
 (0)