danepitkin commented on code in PR #550:
URL: https://github.com/apache/arrow-nanoarrow/pull/550#discussion_r1765513007
##########
python/tests/test_c_array.py:
##########
@@ -610,3 +622,91 @@ def test_c_array_duration():
d2_duration_in_ms,
d3_duration_in_ms,
]
+
+
+def test_device_array_errors():
+ from nanoarrow.device import DeviceType, resolve
+
+ try:
+ cuda_device = resolve(DeviceType.CUDA, 0)
+ except ValueError:
+ pytest.skip("CUDA device not available")
Review Comment:
Ahh that makes sense! Ignore my latest comment.
--
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]