Tests test_theil_sen_parallel and test_multi_output_classification_partial_fit_parallelism hang on Windows
See original GitHub issueDescription
Install scikit-learn 0.20.0 on Windows as follows:
conda create -n hang python=3.6.5
pip install scikit-learn==0.20.0
pip install pytest
Steps/Code to Reproduce
The following two individual test runs hang (never finish, and remain uninterruptable):
pytest -v --pyarg sklearn.tests.test_multioutput::test_multi_output_classification_partial_fit_parallelism
pytest -v --pyarg sklearn.linear_model.tests.test_theil_sen::test_theil_sen_parallel
Expected Results
Expecting them to pass as they do on Linux, or skipped in the distribution
Actual Results
Tests hang in both pip installed scikit-learn, as well in scikit-learn installed via conda itself.
Reproduced on “Windows Server 2012 R2 Standard”.
Versions
>pip list
Package Version
-------------- ---------
atomicwrites 1.2.1
attrs 18.2.0
certifi 2018.8.24
colorama 0.3.9
more-itertools 4.3.0
numpy 1.15.2
pip 10.0.1
pluggy 0.7.1
py 1.6.0
pytest 3.8.2
scikit-learn 0.20.0
scipy 1.1.0
setuptools 40.2.0
six 1.11.0
wheel 0.31.1
wincertstore 0.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:35 (35 by maintainers)
Top Results From Across the Web
Running tests in parallel - testthat
Each worker begins by loading testthat and the package being tested. It then runs any setup files (so if you have existing setup...
Read more >devtools::test() in parallel? - Stack Overflow
I have a test suite using testthat containing several files in R/tests and I would like to test them in parallel to speed...
Read more >Running tests in parallel
Each worker begins by loading testthat and the package being tested. It then runs any setup files (so if you have existing setup...
Read more >devtools::test() hangs with unit test involving parallel ... - GitHub
Hello, I experience that devtools::check() 'hangs' (it never returns, neither does it use any CPU) when there is a unit-test as follows: ...
Read more >Parallel Test Execution - Azure DevOps Blog
The test platform intentionally leaves fine-grained control over parallelism to the framework of choice – i.e. it composes over it. Both levels ...
Read more >Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I volunteer to test fixes for free 😃
Note that this problem only exists on windows, so big instances are more around 5/10$ per hour.
But this should still be fixed in
loky
.