1414from cuda .pathfinder ._dynamic_libs import supported_nvidia_libs
1515from cuda .pathfinder ._utils .find_site_packages_dll import find_all_dll_files_via_metadata
1616from cuda .pathfinder ._utils .find_site_packages_so import find_all_so_files_via_metadata
17- from cuda .pathfinder ._utils .platform_aware import quote_for_shell
17+ from cuda .pathfinder ._utils .platform_aware import IS_WINDOWS , quote_for_shell
1818
1919STRICTNESS = os .environ .get ("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS" , "see_what_works" )
2020assert STRICTNESS in ("see_what_works" , "all_must_work" )
@@ -74,7 +74,7 @@ def test_runtime_error_on_non_64bit_python():
7474@functools .cache
7575def _get_libnames_for_test_load_nvidia_dynamic_lib ():
7676 result = list (SUPPORTED_NVIDIA_LIBNAMES )
77- if supported_nvidia_libs . IS_WINDOWS :
77+ if IS_WINDOWS :
7878 spld_other = supported_nvidia_libs .SITE_PACKAGES_LIBDIRS_WINDOWS_OTHER
7979 all_dyn_libs = find_all_dll_files_via_metadata ()
8080 for libname in spld_other :
@@ -98,7 +98,7 @@ def test_load_nvidia_dynamic_lib(info_summary_append, libname):
9898 # to ensure isolation of global dynamic linking state (e.g., dlopen handles).
9999 # Without child processes, loading/unloading libraries during testing could
100100 # interfere across test cases and lead to nondeterministic or platform-specific failures.
101- timeout = 120 if supported_nvidia_libs . IS_WINDOWS else 30
101+ timeout = 120 if IS_WINDOWS else 30
102102 result = spawned_process_runner .run_in_spawned_child_process (child_process_func , args = (libname ,), timeout = timeout )
103103
104104 def raise_child_process_failed ():
0 commit comments