From ed580831b709f361f8de2c3c8e5f704dd17eb63f Mon Sep 17 00:00:00 2001
From: Gael Varoquaux <gael.varoquaux@normalesup.org>
Date: Mon, 7 May 2012 00:16:30 +0200
Subject: [PATCH] ENH: prevent multiprocessing in tests under Windows

---
 sklearn/test_setup.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 sklearn/test_setup.py

diff --git a/sklearn/test_setup.py b/sklearn/test_setup.py
new file mode 100644
index 0000000000..5e6e7e833e
--- /dev/null
+++ b/sklearn/test_setup.py
@@ -0,0 +1,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'):
+    # During the tests, under Windows, we don't want any multiprocessing
+    os.environ['JOBLIB_MULTIPROCESSING'] = 0
-- 
GitLab