Skip to content

Commit bfef3a4

Browse files
committed
TST: remove xfails on tests which xpassed
1 parent c157622 commit bfef3a4

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

torch_np/tests/test_reductions.py

-29
Original file line numberDiff line numberDiff line change
@@ -530,26 +530,17 @@ def test_keepdims_out(self):
530530

531531

532532

533-
534533
class TestAnyGeneric(_GenericReductionsTestMixin, _GenericHasOutTestMixin):
535534
def setup_method(self):
536535
self.func = np.any
537536
self.allowed_axes = [0, 1, 2, -1, -2,]
538537

539-
@pytest.mark.xfail(reason='XXX: pytorch does not support any(..., axis=tuple)')
540-
def test_axis_bad_tuple(self):
541-
super().test_axis_bad_tuple()
542-
543538

544539
class TestAllGeneric(_GenericReductionsTestMixin, _GenericHasOutTestMixin):
545540
def setup_method(self):
546541
self.func = np.all
547542
self.allowed_axes = [0, 1, 2, -1, -2,]
548543

549-
@pytest.mark.xfail(reason='XXX: pytorch does not support all(..., axis=tuple)')
550-
def test_axis_bad_tuple(self):
551-
super().test_axis_bad_tuple()
552-
553544

554545
class TestCountNonzeroGeneric(_GenericReductionsTestMixin):
555546
# count_nonzero does not have the out=... argument
@@ -564,32 +555,12 @@ def setup_method(self):
564555
self.func = np.argmin
565556
self.allowed_axes = [0, 1, 2, -1, -2, ]
566557

567-
@pytest.mark.xfail(reason='XXX: argmin does not allow axis=tuple')
568-
def test_axis_bad_tuple(self):
569-
# argmin reject axis tuples in both numpy and pytorch
570-
super().test_axis_bad_tuple()
571-
572-
@pytest.mark.xfail(reason='XXX: argmin does not allow axis=tuple)')
573-
def test_axis_empty_generic(self):
574-
# argmin reject axis tuples in both numpy and pytorch
575-
super().test_axis_empty_generic()
576-
577558

578559
class TestArgmaxGeneric(_GenericReductionsTestMixin, _GenericHasOutTestMixin):
579560
def setup_method(self):
580561
self.func = np.argmax
581562
self.allowed_axes = [0, 1, 2, -1, -2, ]
582563

583-
@pytest.mark.xfail(reason='XXX: argmax does not allow axis=tuple')
584-
def test_axis_bad_tuple(self):
585-
# argmax reject axis tuples in both numpy and pytorch
586-
super().test_axis_bad_tuple()
587-
588-
@pytest.mark.xfail(reason='XXX: argmax does not allow axis=tuple)')
589-
def test_axis_empty_generic(self):
590-
# argmax reject axis tuples in both numpy and pytorch
591-
super().test_axis_empty_generic()
592-
593564

594565
class TestAmaxGeneric(_GenericReductionsTestMixin, _GenericHasOutTestMixin):
595566
def setup_method(self):

0 commit comments

Comments
 (0)