File: test_setup.py

package info (click to toggle)
scikit-learn 0.11.0-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,900 kB
  • sloc: python: 34,740; ansic: 8,860; cpp: 8,849; pascal: 230; makefile: 211; sh: 14
file content (11 lines) | stat: -rw-r--r-- 314 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""
Fixtures for the tests.

This module gets loaded by test discovery scanners (such as nose) in
their collection scan.
"""

import os
if os.name.startswith('win') or os.name.startswith('nt'):
    # During the tests, under Windows, we don't want any multiprocessing
    os.environ['JOBLIB_MULTIPROCESSING'] = '0'