We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c30292 commit a300419Copy full SHA for a300419
cuda_pathfinder/tests/test_find_nvidia_headers.py
@@ -44,11 +44,12 @@ def test_find_libname_nvshmem(info_summary_append):
44
info_summary_append(f"{hdr_dir=!r}")
45
if STRICTNESS == "all_must_work" or have_nvidia_nvshmem_package():
46
assert hdr_dir is not None
47
- hdr_dir_parts = hdr_dir.split(os.path.sep)
48
- assert any(
49
- sub_dir in hdr_dir_parts
50
- for sub_dir in (
51
- "site-packages", # pip install
52
- "dist-packages", # apt install
53
- )
54
- ), hdr_dir
+ if have_nvidia_nvshmem_package():
+ hdr_dir_parts = hdr_dir.split(os.path.sep)
+ assert any(
+ sub_dir in hdr_dir_parts
+ for sub_dir in (
+ "site-packages", # pip install
+ "dist-packages", # apt install
+ )
55
+ ), hdr_dir
0 commit comments