diff --git a/tests/python/testing.py b/tests/python/testing.py
index <HASH>..<HASH> 100644
--- a/tests/python/testing.py
+++ b/tests/python/testing.py
@@ -24,7 +24,7 @@ memory = Memory('./cachedir', verbose=0)
 
 
 def is_arm():
-    return {'condition': platform.machine().lower().find('arm') != 1,
+    return {'condition': platform.machine().lower().find('arm') != -1,
             'reason': 'Skipping expensive tests on ARM.'}
 
 def no_sklearn():
Fix a typo in is_arm() in testing.py [skip ci] (#<I>)