This is an automated email from the ASF dual-hosted git repository.

zha0q1 pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.x by this push:
     new 02f4942  [v1.x] Skip windows failing tests (#20395)
02f4942 is described below

commit 02f4942a8bf48a32e94873952a4a6a95c999e14e
Author: Zhaoqi Zhu <[email protected]>
AuthorDate: Wed Jun 30 13:02:54 2021 -0700

    [v1.x] Skip windows failing tests (#20395)
    
    * skip windows
    
    * add one more
---
 tests/python/unittest/test_numpy_op.py | 2 ++
 tests/python/unittest/test_random.py   | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/tests/python/unittest/test_numpy_op.py 
b/tests/python/unittest/test_numpy_op.py
index 8b6fc68..6833cd3 100644
--- a/tests/python/unittest/test_numpy_op.py
+++ b/tests/python/unittest/test_numpy_op.py
@@ -3494,6 +3494,7 @@ def test_np_ravel():
 
 @with_seed()
 @use_np
[email protected](sys.platform.startswith('win'), 
'https://github.com/apache/incubator-mxnet/issues/20389')
 def test_np_randint():
     ctx = mx.context.current_context()
     # test shapes
@@ -7258,6 +7259,7 @@ def test_np_pad():
 
 @with_seed()
 @use_np
[email protected](sys.platform.startswith('win'), 
'https://github.com/apache/incubator-mxnet/issues/20389')
 def test_np_rand():
     # Test shapes.
     shapes = [
diff --git a/tests/python/unittest/test_random.py 
b/tests/python/unittest/test_random.py
index efcf16d..f85503f 100644
--- a/tests/python/unittest/test_random.py
+++ b/tests/python/unittest/test_random.py
@@ -603,6 +603,7 @@ def test_sample_multinomial():
 
 # Test the generators with the chi-square testing
 @with_seed()
[email protected](sys.platform.startswith('win'), 
'https://github.com/apache/incubator-mxnet/issues/20389')
 def test_normal_generator():
     ctx = mx.context.current_context()
     samples = 1000000
@@ -627,6 +628,7 @@ def test_normal_generator():
                              nsamples=samples, nrepeat=trials)
 
 @with_seed()
[email protected](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']:
@@ -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()
[email protected](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']:
@@ -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()
[email protected](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']:
@@ -689,6 +693,7 @@ def test_poisson_generator():
             verify_generator(generator=generator_mx_same_seed, 
buckets=buckets, probs=probs)
 
 @with_seed()
[email protected](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']:
@@ -718,6 +723,7 @@ def test_negative_binomial_generator():
         verify_generator(generator=generator_mx_same_seed, buckets=buckets, 
probs=probs)
 
 @with_seed()
[email protected](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,
@@ -1000,6 +1006,7 @@ def test_randint_extremes():
     assert a>=50000000 and a<=50000010
 
 @with_seed()
[email protected](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']:

Reply via email to