diff --git a/cuda_core/tests/system/test_system_device.py b/cuda_core/tests/system/test_system_device.py index 52c08533ff..422e60a55a 100644 --- a/cuda_core/tests/system/test_system_device.py +++ b/cuda_core/tests/system/test_system_device.py @@ -253,6 +253,9 @@ def test_persistence_mode_enabled(): assert isinstance(is_enabled, bool) try: device.persistence_mode_enabled = False + except nvml.NoPermissionError as e: + pytest.xfail(f"nvml.NoPermissionError: {e}") + try: assert device.persistence_mode_enabled is False finally: device.persistence_mode_enabled = is_enabled