<p dir="auto">If I run a test with<br>
<code class="notranslate">shuffle(np.arange(10), random_state=0)</code><br>
<del>I will get a different result when another test was run before.</del><br>
it is more complicated...</p>
<p dir="auto">When I run<br>
<code class="notranslate">nosetests sklearn</code><br>
everything looks fine, If I do<br>
<code class="notranslate">nosetests sklearn/svm/tests/</code><br>
I get an error in <code class="notranslate">test_sparse.py</code>, but when I do<br>
<code class="notranslate">nosetests sklearn/svm/tests/test_sparse.py</code><br>
I get no error.</p>
<p dir="auto">I guess this has something to do with the shuffling of the dataset or other random things.<br>
I thought the way it is written the shuffling is done once and for all for all the tests so I don't really understand how this can happen. Any ideas?</p>