DickJC123 commented on a change in pull request #9791: CI test randomness 3
URL: https://github.com/apache/incubator-mxnet/pull/9791#discussion_r168375948
 
 

 ##########
 File path: tests/python/unittest/test_gluon.py
 ##########
 @@ -530,13 +562,19 @@ def __init__(self, **kwargs):
         model.collect_params()
         assert len(w) == 0
 
+
+@with_seed()
 def test_sequential_warning():
     with warnings.catch_warnings(record=True) as w:
+        # The following line permits the test to pass if run multiple times
+        warnings.simplefilter('always')
 
 Review comment:
   This PR provides an easy way to run a test multiple times under different 
seeds.  I found that this particular test would fail under those circumstances 
without this fix, when invoked as:
   
   MXNET_TEST_COUNT=100 nosetests --verbose tests/python/unittest/test_gluon.py

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to