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

 ##########
 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:
   In what case would a test run multiple times and why shall it fail in that 
case?

----------------------------------------------------------------
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