Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.x] Skip windows failing tests #20395

Merged
merged 2 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -3494,6 +3494,7 @@ def hybrid_forward(self, F, a):

@with_seed()
@use_np
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_np_randint():
ctx = mx.context.current_context()
# test shapes
Expand Down Expand Up @@ -7258,6 +7259,7 @@ def hybrid_forward(self,F,A,**kwargs):

@with_seed()
@use_np
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_np_rand():
# Test shapes.
shapes = [
Expand Down
7 changes: 7 additions & 0 deletions tests/python/unittest/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ def test_sample_multinomial():

# Test the generators with the chi-square testing
@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_normal_generator():
ctx = mx.context.current_context()
samples = 1000000
Expand All @@ -627,6 +628,7 @@ def test_normal_generator():
nsamples=samples, nrepeat=trials)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_uniform_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand Down Expand Up @@ -660,6 +662,7 @@ def test_gamma_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs, success_rate=success_rate)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_exponential_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand All @@ -674,6 +677,7 @@ def test_exponential_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs, success_rate=0.20)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_poisson_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand All @@ -689,6 +693,7 @@ def test_poisson_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_negative_binomial_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand Down Expand Up @@ -718,6 +723,7 @@ def test_negative_binomial_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_multinomial_generator():
# This test fails with dtype float16 if the probabilities themselves cannot be
# well-represented in float16. When the float16 random picks are assigned to buckets,
Expand Down Expand Up @@ -1000,6 +1006,7 @@ def test_randint_extremes():
assert a>=50000000 and a<=50000010

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), '/~https://github.com/apache/incubator-mxnet/issues/20389')
def test_randint_generator():
ctx = mx.context.current_context()
for dtype in ['int32', 'int64']:
Expand Down