Skip to content

Commit 5f417b5

Browse files
committed
add some scipy skip annotations to tests
1 parent 7aef257 commit 5f417b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_transforms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def test_lambda(self):
335335
# Checking if Lambda can be printed as string
336336
trans.__repr__()
337337

338+
@unittest.skipIf(stats is None, 'scipy.stats not available')
338339
def test_random_apply(self):
339340
random_state = random.getstate()
340341
random.seed(42)
@@ -360,6 +361,7 @@ def test_random_apply(self):
360361
# Checking if RandomApply can be printed as string
361362
random_apply_transform.__repr__()
362363

364+
@unittest.skipIf(stats is None, 'scipy.stats not available')
363365
def test_random_choice(self):
364366
random_state = random.getstate()
365367
random.seed(42)
@@ -395,6 +397,7 @@ def test_random_choice(self):
395397
# Checking if RandomChoice can be printed as string
396398
random_choice_transform.__repr__()
397399

400+
@unittest.skipIf(stats is None, 'scipy.stats not available')
398401
def test_random_order(self):
399402
random_state = random.getstate()
400403
random.seed(42)

0 commit comments

Comments
 (0)