raulcd commented on code in PR #49507:
URL: https://github.com/apache/arrow/pull/49507#discussion_r2931368108


##########
python/pyarrow/conftest.py:
##########
@@ -239,10 +246,7 @@ def pytest_ignore_collect(collection_path, config):
                 return True
 
         if 'pyarrow/cuda' in str(collection_path):
-            try:
-                import pyarrow.cuda  # noqa
-                return False
-            except ImportError:
+            if not _cuda_is_available():
                 return True

Review Comment:
   To maintain the return False/return True.
   ```suggestion
               return not _cuda_is_available()
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to