scikit-learn/scikit-learn — pull request #694 by njwilson (2012-03-13 23:39:10+00:00)
Title: Skip k-means parallel test on Mac OS X Lion (10.7)

There is a bug that occurs in the BLAS DGEMM function after a fork on
Mac OS X Lion that causes this test to hang. See issue #636 for details.
This commit causes the test_k_means_plus_plus_init_2_jobs test to be
skipped on this platform.

The Mac version is determined from platform.mac_ver() similar to how it
is described in the following link. I couldn't find a 'cleaner' way.

http://stackoverflow.com/questions/1777344/how-to-detect-mac-os-version-using-python