File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -195,11 +195,14 @@ def test_k_means_new_centers():
195
195
np .testing .assert_array_equal (this_labels , labels )
196
196
197
197
198
- def _is_mac_os_version (version ):
199
- """Returns True iff Mac OS X and newer than specified version."""
198
+ def _is_mac_os_version (versions ):
199
+ """
200
+ Return True if OS is Mac OS X and its major
201
+ version is one of the ``versions``.
202
+ """
200
203
import platform
201
204
mac_version , _ , _ = platform .mac_ver ()
202
- return mac_version . split ( '.' )[: 2 ] == version . split ('.' )[:2 ]
205
+ return '.' . join ( mac_version . split ('.' )[:2 ]) in versions
203
206
204
207
205
208
def _has_blas_lib (libname ):
@@ -208,8 +211,8 @@ def _has_blas_lib(libname):
208
211
209
212
210
213
def test_k_means_plus_plus_init_2_jobs ():
211
- if _is_mac_os_version ('10.7' ) or _is_mac_os_version ( '10.8' ):
212
- raise SkipTest ('Multi-process bug in Mac OS X Lion (see issue #636)' )
214
+ if _is_mac_os_version ([ '10.7' , '10.8' , '10.9' ] ):
215
+ raise SkipTest ('Multi-process bug in Mac OS X >= 10.7 (see issue #636)' )
213
216
214
217
if _has_blas_lib ('openblas' ):
215
218
raise SkipTest ('Multi-process bug with OpenBLAS (see issue #636)' )
You can’t perform that action at this time.
0 commit comments