Mark slow tests
@@ -11,6 +11,7 @@ from cupy import core
from cupy import cuda
from cupy.random import generator
from cupy import testing
+from cupy.testing import attr
from cupy.testing import condition
from cupy.testing import hypothesis
@@ -439,8 +440,9 @@ class TestLogistic(RandomGeneratorTestCase):
def test_logistic_2(self):
self.generate(0.0, 1.0, size=(3, 2))
+ @attr.slow
+ @condition.repeat(10)
def test_standard_logistic_isfinite(self):
- for _ in range(10):
x = self.generate(size=10**7)
self.assertTrue(cupy.isfinite(x).all())
@@ -770,8 +772,9 @@ class TestStandardCauchy(RandomGeneratorTestCase):
def test_standard_cauchy(self):
self.generate(size=(3, 2))
+ @attr.slow
+ @condition.repeat(10)
def test_standard_cauchy_isfinite(self):
- for _ in range(10):
x = self.generate(size=10**7)
self.assertTrue(cupy.isfinite(x).all())
@@ -1308,8 +1311,9 @@ class TestStandardExponential(RandomGeneratorTestCase):
def test_standard_exponential(self):
self.generate(size=(3, 2))
+ @attr.slow
+ @condition.repeat(10)
def test_standard_exponential_isfinite(self):
- for _ in range(10):
x = self.generate(size=10**7)
self.assertTrue(cupy.isfinite(x).all())
