8000 ENH: prevent multiprocessing in tests under Windows · seckcoder/scikit-learn@ed58083 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed58083

Browse files
committed
ENH: prevent multiprocessing in tests under Windows
1 parent b93105e commit ed58083

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sklearn/test_setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""
2+
Fixtures for the tests.
3+
4+
This module gets loaded by test discovery scanners (such as nose) in
5+
their collection scan.
6+
"""
7+
8+
import os
9+
if os.name.startswith('win'):
10+
# During the tests, under Windows, we don't want any multiprocessing
11+
os.environ['JOBLIB_MULTIPROCESSING'] = 0

0 commit comments

Comments
 (0)
0