scikit-learn/sklearn/test_setup.py

13 lines
307 B
Python
Raw Normal View History

"""
Fixtures for the tests.
This module gets loaded by test discovery scanners (such as nose) in
their collection scan.
"""
2012-05-30 15:32:42 +08:00
import platform
import os
2012-05-30 15:32:42 +08:00
if platform.system() == 'Windows':
# During the tests, under Windows, we don't want any multiprocessing
os.environ['JOBLIB_MULTIPROCESSING'] = '0'